Hi I'm a Plus plan subscriber so starting to explore AT more in depth.
I have a built a base with a JOBS table that lists jobs by job number, and using various currency, numerical and formula fields, delivers a profit per hour figure for each job. It does this by dividing the total job profit by the number of hours spent on the job.
A second table called TIME LOGGING is updated with forms submitted by staff and tags their time to a job. These individual time logs are rolled up in the JOBS table to deliver the profit per hour figure. The next part is where I need help.
How can I now deliver a PROFIT PER HOUR PER STAFF MEMBER figure which takes into account that time they have spent on each job? On some jobs, several members of staff log time, so the figure must be proportional to the time they spent on the job.
E.g. If the staff member logged time to two jobs, one of which was just them, and one of which was part of a team, this would calculate as follows:
Job 1: Profit per hour is $100 based on 2 hours total time spent on a $200 job. Staff member has booked 2 hours to this job.
Job 2: Profit per hour is $125 based on 10 hours total time spent on a $1250 job. Staff member has booked 4 hours to this job.
Staff members profit per hour is ($100*2 + $125*4) / 6 = $116.67
How can I achieve this?