recalculate flex time