Highlighted

IFF calculation

Avatar

06-01-2009

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.