Adobe Acrobat script to calculate prorated rent based upon values in text boxes not working?
I'm trying to create a script to calculate the prorated rent based upon the move-in date on a PDF form and the script keeps coming back with odd prorated amounts...the MoveInDay = 12, DaysRentIsDue = 19 and RentRateDaily = 76.37 but the event.value it comes back with in my RentProratedDue field is 2291.10 which makes no sense to me based upon the simple script below; all I'm asking it to do is basically do the following math: 76.37 * 19 = 1451.03, right? Please let me know what I'm doing wrong...thx! 🙂
{
if (this.getField("MoveInDay").value > 1)
event.value = this.getField("RentRateDaily").value * this.getField("DaysRentIsDue").value;
else
event.value = this.getField("RentRate").value;
}
