How end-of-month invoicing works