added due date calculation method parameter to the tasktype