calculate total fees due.