hi all experts,
i need this very urgently.
i need a code to calculate the amount of charges and if the value is < 5 the value will be 5 and if it is over 50, it is cap at max 50.
the % is 0.03125.
this code will calculate the amount of charges.
for example, if user type in 10,000. the code will calculate 10000 x 0.03125% and the value is 3.125 but i need the value to be shown as 5 (min. cap at 5).
if user type in 300,000. the code will calculate 300,000 x 0.03125% and the value is 93.75 but i want the value to be cap at 50.
please assist. thank you.
Bookmarks