(To settle this...)
It's easy to come up with the equation of a line joining two points: if you assume a variable third point and then impose the condition that the slope of the segment joining the two given points and the slope of the segment joining one of the two givens and the variable, you get
$$\frac{y_2-y_1}{x_2-x_1}=\frac{y-y_1}{x-x_1}$$
In your case, since you wanted the line joining two points in the (time,opacity) plane, you then obtain the expression `((end_opacity-start_opacity)/(end_time-start_time))(current_time-start_time)+start_opacity`. As Rahul mentions, this is sometimes termed as linear interpolation.