The requirements of @acecombat2 and mine are almost similar in some aspects as we too are faced with a new GST implementation in our country.
This is the way it needs to be calculated. But in the end it should give a summary of the taxes. Think about the mistakes that can happen when filing tax return by manual addition of tax totals. I asked for help regarding this from Lubos but there has not been a response yet.