Forum Discussion
MichelleMichell
8 years agoQrew Cadet
Hi Ryan,
You can create a calculated date field based off of the Invoice Date and Arrival Date (I'm assuming that the number of payments is determined by the number of months between the two). Try this:
If( Month( [Arrival Date] ) >= Month( [Invoice Date] ),
If( Day( [Arrival Date] ) >= Day( Today() ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) + 1),
If( Day( [Arrival Date] ) >= Day( Today() ),
If( Month( Today() ) > Month( [Arrival Date] ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) - 12),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date]) ),
If( Month( Today() ) > Month( [Arrival Date] ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) - 11),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date]) + 1 ) ) ) )
You can create a calculated date field based off of the Invoice Date and Arrival Date (I'm assuming that the number of payments is determined by the number of months between the two). Try this:
If( Month( [Arrival Date] ) >= Month( [Invoice Date] ),
If( Day( [Arrival Date] ) >= Day( Today() ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) + 1),
If( Day( [Arrival Date] ) >= Day( Today() ),
If( Month( Today() ) > Month( [Arrival Date] ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) - 12),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date]) ),
If( Month( Today() ) > Month( [Arrival Date] ),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date] ) - 11),
AdjustMonth( [Arrival Date], Month( Today() ) - Month( [Arrival Date]) + 1 ) ) ) )