Last sync time calculation.