Invoice payment calculations