GeneralCalculate percentage

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
aniyanrajan6
Posts: 1
Joined: Tue May 14, 2013 7:11 am

Calculate percentage

Post by aniyanrajan6 »

I am working with the invoice source code from
http://www.latextemplates.com/template/invoice

I want to display the "Webhosting" value as a percentage of the Subtotal.

In the example pdf,
Subtotal = 734.55
Webhosting = (734.55 * 3.9 / 100) + 0.3 = 28.95

If the Subtotal is 734.55 then Webhosting should be 28.95.
How can I do that with the code in the above URL ?

I am new to latex. Please help.

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Calculate percentage

Post by cgnieder »

Hi aniyanrajan6,

Welcome to the LaTeX community!

Please add a Infominimal working example (MWE) (if you're not sure what that is please follow the link) that shows us what you're doing and what you're struggling with. It is much easier to help when we see compilable code starting with \documentclass and ending with \end{document}.

Regards
site moderator & package author
Post Reply