I wish to calculate the departure date by subtracting number of transport days from the delivery date. How to do this?
'Delivery Date': number 'date'
'Transport Days': number 'days2'
'Departure Date': number 'date' = sum ( .'Delivery Date' , - .'Transport Days')
'date' in 'days'
= 'date-time'+ 0 * 10 ^ 0 in 'seconds'
@date
'days2'
@numerical-type: (
label: "days"
state constraint violation for ‘quantity type’. Unexpected state for ‘type’:
application.alan(3536, 39): - expected: ‘quantity’
application.alan(27482, 9): - but found: ‘scale’
application.alan(27482, 9): defined by .‘date’ of type ‘application’.‘numerical types’
equality constraint violation for ‘value’:
application.alan(27482, 2): - expected: .‘date’ of type ‘application’.‘numerical types’
application.alan(27503, 2): - but found: .‘days2’ of type ‘application’.‘numerical types’