It looks like you tried to do, among other things, “How many minutes apart is Date 2 from (Date 1 * number of people)?” which doesn’t make any sense. The proper way to do that would be “How many minutes apart is Date 2 from Date 1? Multiply that time difference by a number of people.” Your other issues include improper syntax (i.e. {{End (Team 2)}
instead of {End (Team 2)}
, not separating the arguments in your SUM()
function with a comma, etc.).
SUM(
(DATETIME_DIFF({End (Team 1)}, {Start (Team 1)}, 'minutes') * {Staff (Team 1)}),
(DATETIME_DIFF({End (Team 2)}, {Start (Team 2)}, 'minutes') * {Staff (Team 2)})
)/ 60 - (
SUM({Breaks in H (Team 1)}, {Breaks in H (Team 2)}) *
SUM({Staff (Team 1)}, {Staff (Team 2)})
)
^ In plain English, that formula reads:
(The total number of hours worked by the Staff of Team 1 and Team 2) - (The total number of break hours spend by the Staff of Team 1 and Team 2)