time calculation, few passes