calculate total in instance usage table