finished billing cycle calculation function