task amount calculation bug