nt: number of time intervals between initial and final time