/    Sign up×
Community /Pin to ProfileBookmark

Need Java Script Help

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*
PPD = NPPC
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

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 14.2007 — Sounds like you require Java not JavaScript. They are NOT the same language.

If you want help you should at least show what you have done, not a list of equations
Copy linkTweet thisAlerts:
@syferauthorJan 14.2007 — Thanks for the HElP

Did you understand my post

I am just learning.

I posted i need help and posted the calculation i need to have performed in a web page i have ben told ill have to do it in a java script how ever have not ben able to do so i can use HTML but CANOT create or preform a java app withen the page .

THE list of equations as you have called them are a EXAMPLE as to what i need to do in JAVA (seams you know as much as me) i have made a page and tryd to create a java app and have a problem doing so .

_____________________________________________________________________________
At least 2% of internet users' Mistakenly Think they are smarter then then a monkey .
×

Success!

Help @syfer spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...