I am very new to HTML trying to learn every thing I can I am trying to write a script for a Math applet that will perform a prorate calculation on a 30 day payment with a payment rate change. IE example 30 days payment of 90 bucks go’s up to $100 bill is payable on the 10th day of month change is on the 20th day of month so prorate would be 20 days.
I Tried to make a basic math script but when tried to compile (using dos command) it failed Need lots of help if some one can write a example script and maybe let me know how to edit or ire there any Java script tools were I can edit / write / and compile within a program ?
Any help sites writing script or as I said can some write an example for me I can edit and or advise me how I can edit existing scripts.
Console entry is
Price plan cycle date
Date of Change (can take from system)
Old Price plan cost
New Price plan cost
Parameters are
Price plan cycle date (PPC)
0ld Price Plan Cost (OPP)
Old Price Plan Prorate Refund (OPPR)
New Price Plan Cost (NPPC)
Number of Days Prorated (NDP)
Days Expired In plan (PPDE)
Days Reaming In Plan/ (PPD)
Cost Per Day Of Old Pan (OPCD)
Cost Paper Day Of New Plan (NPCD)
New Price Plan Prorate Charge (NPPR)
Total Billed Plan prorate Charge (TBPC)
Operations
OPP/30 = OPCD
NPP/30 = NPCD
OPCD*PPDE+(-OPP)= OPPR
NPCD
NPPC-OPPR = TBPC
Example
New Price plan Prorate Charge per Day (NPPR) 100/30=3.33
Old Price plan Prorate Charge per Day (0PCD) 90/30=3
Old Price Plan Cost (OPPC) 3*10+ (-90) = -60
New Price Plan Cost (NPPC) 3.33*20=66.6
Total Prorate Cost (TPC) 60-66.6=6.66