Forum Discussion

Storming's avatar
Storming
Brass Contributor
Apr 14, 2020

VAT calculation

Hi, I want to calculate VAT (generally 20%) from a gross amount. I want to be able to format it to 2 dec places so that if the pence is .100 to .104 the pence stays as .10 but if the pence is .105 t...
  • luise983's avatar
    Jul 19, 2024

    Your method works, but you can simplify it by using:

    ```sql
    CCur(Round([Gross Amount] * [VAT Percentage] / (100 + [VAT Percentage]), 2))
    ```

    This VAT Calculator method keeps it as currency and exports correctly to Excel.

Resources