WIP #1852 Periodic billing calculation