<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions namespace="https://dsntk.io"
name="compliance-level-2-test-0008"
id="_e2d61fd1-c220-4359-9f7e-b42474c7983f"
xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/">
<itemDefinition name="tLoan" id="_3e908716-ee19-4567-87e7-c74384d15365">
<itemComponent name="principal" id="_561947e6-180a-416e-aa22-5e8e5d650624">
<typeRef>number</typeRef>
</itemComponent>
<itemComponent name="rate" id="_c1751fa0-4da6-4cb5-a234-45765d6b35ac">
<typeRef>number</typeRef>
</itemComponent>
<itemComponent name="termMonths" id="_006e0a06-26a6-42e1-9b3c-4b2502a567fe">
<typeRef>number</typeRef>
</itemComponent>
</itemDefinition>
<decision name="payment" id="_ebf02591-49c6-448d-9f76-6358b0e011c3">
<variable typeRef="number" name="payment"/>
<informationRequirement id="e5d03276-c21e-40e7-8067-b8096e30d26a">
<requiredInput href="#_1f4ae444-2e4e-4d26-b1f7-87a645c3f50a"/>
</informationRequirement>
<literalExpression>
<text>(loan.principal*loan.rate/12)/(1-(1+loan.rate/12)**-loan.termMonths)</text>
</literalExpression>
</decision>
<inputData name="loan" id="_1f4ae444-2e4e-4d26-b1f7-87a645c3f50a">
<variable typeRef="tLoan" name="loan"/>
</inputData>
<dmndi:DMNDI>
<dmndi:DMNDiagram id="_1fedf2c0-0f4a-470c-bc66-a15528e8a49a_D1">
<dmndi:Size height="650.0" width="650.0"/>
<dmndi:DMNShape dmnElementRef="_ebf02591-49c6-448d-9f76-6358b0e011c3" id="_1fedf2c0-0f4a-470c-bc66-a15528e8a49a_s1">
<dc:Bounds height="61.0" width="154.0" x="150.0" y="150.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_1f4ae444-2e4e-4d26-b1f7-87a645c3f50a" id="_1fedf2c0-0f4a-470c-bc66-a15528e8a49a_s2">
<dc:Bounds height="60.0" width="153.0" x="151.0" y="331.0"/>
</dmndi:DMNShape>
<dmndi:DMNEdge dmnElementRef="e5d03276-c21e-40e7-8067-b8096e30d26a" id="_1fedf2c0-0f4a-470c-bc66-a15528e8a49a_e1">
<di:waypoint x="227.0" y="331.0"/>
<di:waypoint x="227.0" y="211.0"/>
</dmndi:DMNEdge>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>