Calculate work flexi and toil