Mainline Diversion Calculator