-
Notifications
You must be signed in to change notification settings - Fork 21
Create Add DiscountRate.md #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4564,7 +4564,7 @@ | |
| </xs:annotation> | ||
| <xs:complexType> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:decimal"> | ||
| <xs:extension base="xs:nonNegativeInteger"> | ||
| <xs:attribute ref="auc:Source"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
|
|
@@ -4777,6 +4777,20 @@ | |
| <xs:element name="DiscountFactor" minOccurs="0"> | ||
| <xs:annotation> | ||
| <xs:documentation>Discount factor applied to calculate present values of future cash flows. (0-100) (%)</xs:documentation> | ||
| <xs:documentation>Discount factors $v$ are related to discount rates $i$ by the following equation: $v=\frac{1}{1+i}$.</xs:documentation> | ||
| </xs:annotation> | ||
| <xs:complexType> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:decimal"> | ||
| <xs:attribute ref="auc:Source"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
| </xs:complexType> | ||
| </xs:element> | ||
| <xs:element name="DiscountRate" minOccurs="0"> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! And thanks for updating the documentation of the discount factor.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed! |
||
| <xs:annotation> | ||
| <xs:documentation>Discount rate applied to calculate present values of future cash flows. (0-100) (%)</xs:documentation> | ||
| <xs:documentation>Discount rates $i$ are related to discount factors $v$ by the following equation: $i=\frac{1-v}{v}$ where $v \neq 0$.</xs:documentation> | ||
| </xs:annotation> | ||
| <xs:complexType> | ||
| <xs:simpleContent> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Add Discount Rate | ||
|
|
||
| ## Overview | ||
|
|
||
| This proposal is support the assertion of discount rates in BuildingSync XML schema. | ||
|
|
||
| ## Justification | ||
|
|
||
| ### Present Value Calculation | ||
|
|
||
| The equation for net present value is: | ||
|
|
||
| $$ NPV\left({i,N}\right) = \sum_{t=0}^{N}{\frac{R_{t}}{\left({1+i}\right)^t}} $$ | ||
|
|
||
| where | ||
| * $i$ is the discount rate (percentage). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we say i is the interest rate here since v is the discount rate where v=1/(1+i)? |
||
| * $N$ is the total number of periods (non-negative integer). | ||
| * $t$ is the time of the cash flow (non-negative integer). | ||
| * $R_{t}$ is the cash flow at time $t$ (decimal). | ||
|
|
||
| Currently, BuildingSync XML schema supports the assertion of discount factors via the `<auc:DiscountFactor>` element, where the discount factor $v$ is related to the discount rate $i$ by the following equation: | ||
|
|
||
| $$ v = \frac{1}{1 + i} $$ | ||
|
|
||
| ### Service Life | ||
|
|
||
| BuildingSync XML schema supports the assertion of the service life in years via the `<auc:UsefulLife>` element. | ||
| Currently, the datatype is `xsd:decimal`, which allows for fractional and negative years. | ||
| However, ASHRAE [reports](http://weblegacy.ashrae.org/publicdatabase/) median life in non-negative integer years. | ||
|
|
||
| ## Implementation | ||
|
|
||
| The proposed implementation consists of 3 tasks: | ||
|
|
||
| 1. Add `<auc:DiscountRate>` element (non-breaking change). | ||
| 2. Add documentation to definitions of `<auc:DiscountFactor>` and `<auc:DiscountRate>` elements to clarify their mathematical relationship (non-breaking change). | ||
| 3. Constrain datatype of `<auc:UsefulLife>` element to `xsd:nonNegativeInteger` (breaking change). | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect