[Invoices] Fixed inaccurate calculations.