Fix off-by-1000 error in saving total duration to the markup table.