Off track PNR
Rough solution.
1- Extend route A -> B to the point (C) where you would reach fuel exhaustion if you were not landing at B (hopefully, this point is past B in the direction of A->B).
2- Your PNR is simply the ETP between C and your alternate.
Hope this helps - DJ