cost calculation #9
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Cost-Benefit-Projection#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Looking at the code for calculating costs on the Joomla2 version (from line 1127) the calculations for cost of morbidity used a different format to presenteeism and mortality (see part of equation on working_days). Did this carry through to the Joomla3 version?
I don't believe it affects the end number, but for consistency - they should use brackets and operators in the same way.
I am not sure what you want to change, but line 1127 in version 2 correspond to line 1044 in version 3 and so yes it has been carried through.
You point out that it should be the same to presenteeism and mortality, and from what I see it clearly isn't, so on line 1117 you can see presenteeisms implementation.
Would you like to make changes to the calculations? I simply used your documentation to setup these, so to change them is very simple. Just give me the new or better calculations.
Lets use free hand notation to map the calculations:
line 1044
line 1117
Rewrite these free hand calculations to reflect how you would want it implemented, please also include the mortality version.
It's just that the statements
(( total_salary / males + females) / working_days )
and
( total_salary / (( males + females) * working_days))
will produce the same result but are written inconsistently. I prefer the second one.
So you are speaking about operator precedence. Hmmm okay I will update those for you in the next commit.
Thanks