Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

IFF calculation

Avatar

Former Community Member
I am trying to calculate reimbursement amount based on the date of travel. If the date is after 1/1/09 then the amount is .55 else .585. I am using this code in javascript. This always calculates using .55.



var curDate=Dt1.rawValue;

var cent=curDate.formatedValue < 01/01/09? 0.585:0.55;

this.rawValue =(Miles1.rawValue)*cent;



Thanks for the help in advance.
0 Replies