calculate delay using model object
added comments for normalization step