Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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.