Clamping diode current in flyback converter
Just concentrate on the red triangle: -

And think about t varying relative to the base of the triangle starting at 0 and ending at Δt. When t = 0, \$I_d = I_{PEAK}\$ and when t = Δt, \$I_d = 0\$.