how to calculate costs in excess of billings