Started code for estimating runtime