Final invoice total not calculating correctly