task calculation - is valid time