Javascript for daily increasing a price between two dates

I'm not good with math functions at all, but I've searched for a while and couldn't find anyone even touching on this subject.

I'd like to have the price of $900 slowly approach $1500 between the dates of April 1st and August 1st. That's about $5 per day, and the formula would be:

ROUND(1500 - (600 * ((DEADLINE - TODAY) / (DEADLINE - START)))

But how do I express that in terms of javascript and HTML so that I can write it out in a sentence like "Today you'll have to pay $920."

Thanks for any help you're able to provide.