v4
Search
K
Links

Create date math

post
https://ris.rightsline.com
/v4/date-math
Create date math

ParentCalc object

{
"entityTypeId":4, // char type ID
"id":618, // record ID
"tagLabel": "contract_term_start", // tag label of source characteristic
"yearQuantity": 0, // quantity in years
"monthQuantity": 0, // quantity in months
"weekQuantity": 0, // quantity in weeks
"dayQuantity": 15, // quantity in days
"dayUnit": "Days", // unit for days (Days/BusinessDays)
"isPriorTo": false, // before or after source date
"sortOrder": 1 // order in which date is calculated
}

Example

Calculate the contract_term_end for deal record 618 as the earliest of the following two source dates:
  1. 1.
    15 days prior to the contract_date of deal record 620, or
  2. 2.
    15 days after (isPriorTo = false) the contract_term_start date on deal 621.
{
"type":"EARLIESTOF",
"childEntityTypeId":4,
"childId":618,
"childTagLabel":"contract_term_end",
"recalcOption":"OPEN",
"parentCalcs":[
{
"entityTypeId":4,
"id":620,
"tagLabel": "contract_date",
"dayQuantity": 15,
"dayUnit": "DAYS",
"isPriorTo": true,
"sortOrder": 0
},
{
"entityTypeId":4,
"id":621,
"tagLabel": "contract_term_start",
"dayQuantity": 15,
"dayUnit": "DAYS",
"isPriorTo": false,
"sortOrder": 1
}
]
}