How to create an invoice based on recorded time