small issue in calculate_dt

small issue