Calculate execute time