Skip to content

Create Add DiscountRate.md#457

Merged
JieXiong9119 merged 3 commits intoBuildingSync:develop-v2from
markborkum:proposal/add-discount-rate
Jan 5, 2023
Merged

Create Add DiscountRate.md#457
JieXiong9119 merged 3 commits intoBuildingSync:develop-v2from
markborkum:proposal/add-discount-rate

Conversation

@markborkum
Copy link
Copy Markdown
Contributor

Any background context you want to provide?

N/A

What does this PR do?

New proposal to add "Discount Rate" element.

How should this be manually tested?

N/A

What are the relevant tickets?

N/A

Screenshots (if appropriate)

Comment thread BuildingSync.xsd
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:extension base="xs:nonNegativeInteger">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect

Comment thread BuildingSync.xsd
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="DiscountRate" minOccurs="0">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! And thanks for updating the documentation of the discount factor.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

$$ NPV\left({i,N}\right) = \sum_{t=0}^{N}{\frac{R_{t}}{\left({1+i}\right)^t}} $$

where
* $i$ is the discount rate (percentage).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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)?

Copy link
Copy Markdown
Contributor

@laurenliz22 laurenliz22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks Mark! I had one comment on the definition of i

@laurenliz22 laurenliz22 self-requested a review November 2, 2022 05:28
@JieXiong9119 JieXiong9119 merged commit 9acb8d1 into BuildingSync:develop-v2 Jan 5, 2023
JieXiong9119 added a commit to markborkum/schema that referenced this pull request Jan 5, 2023
The recent change in PR BuildingSync#457 requires element `<auc:UsefulLife>` to be `xsd:nonNegativeInteger`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants