In a double slit experiment where the screen distance is not small, the path length is determined by calculating the excess path taken by rays from the slits to the screen. For a point above the top slit, the excess path can be expressed as d*sin(theta) plus an additional term [d*cos(theta)]^2/(2r1). Here, d represents the distance between the slits, theta is the angle to the screen from the top slit, and r1 is the distance from the slits to the point on the screen. This approach accounts for the non-parallel nature of the rays when the screen is at a finite distance. Accurate calculations require careful consideration of geometry and approximations.