Error in task start date calculation

Hello,

calculating the start date via the calculateEndDate in conjunction with work time produces an incorrect result. The task duration is being changed even though it should stay the same. Ive prepared an example to showcase the problem:

https://snippet.dhtmlx.com/02acwxci

This seems to be critical because it affects the baseline calculation of tasks in the gantt.

Hello!

Thank you for the detailed example, we’ve reproduced the issue.
There was a bug in the method that handles the subtraction of worktime in minute units.

We fixed the bug in the dev branch of the library and fix will be available in the upcoming bugfix v8.0.4, which should be released in a week or two.

Best regards,