Let the limits on integrating with respect to P be 5000 and 500,000.
Let the limits on integrating with respect to t be 0 and T.