+ Start a Discussion

calculate fields in vf page

I have a button that renders a pdf.  In the pdf is a finance table, calculating the financing cost with different percentages for money down (5%, 10% & 20%)
I have 4 cost fields(tax, warranty, list price, part costs) that have to added to get the the total cost of an item.  I then need to take 5%, 10% and 20% of that total cost and show the result.  Can I accomplish this in a vf page or do I need to use the controller?  Any help with examples would be great.