GNOME Bugzilla – Bug 155496
Task cost calculation does not reflect actual length of day
Last modified: 2005-10-13 20:19:35 UTC
Having set up a working day of 7.5 hours and a cost of 10 with a task duration of 5 days the calculated cost in the Task page is 400 this should be 375 as I have set up a 37.5 hour week. The cost calculator should take into account the actual length of the working day not default to 8 hours. This is using KDE V3.2 branch 20040204
We have actually been discussing how to handle this. One suggestion was to have a separate setting for default working day length and use that for those calculations and other places where we need hour <=> day conversion etc. What do you think about that solution?
I don't see why you need to keep the default working day length, surely once the 'real' working day length has been set up all project and task calculations should be done using the new 'real' length. So why not just change the working day from the initial 8 hours to the 'correct' project day length and leave it at that?
The problem is that there is no "one true" length, since it depends on which calendar is used. So two different resources can have completely different working hours, for example. This shouldn't really affect the conversion from hours to days, imo.
True, I suppose each calendar will have to have a working day length and all calculations will have to cross reference the calendar data to ensure the correct values are calculated, then if one is required a general 'default' day length of whatever is set up in the project (presumably thedefault calenday day length) can be available to initialise the default calendar day value.
This should be a lot easier to fix now, since there is only one place to change (planner_format/parse_duration).
*** This bug has been marked as a duplicate of 134383 ***