Total price function

Created a function that calculates the total price for a project.
This is used in the create invoice view