Thanks for the update. That’s too bad. I was convinced WEP didn’t apply to spousal benefits, it’s written everywhere.
But I did see this article recently:
What you may have read is that the Windfall Elimination Provision (WEP) does not directly apply to spousal benefits. WEP can only apply to Social Security retirement or disability benefits payable based on a person's own work record. WEP can indirectly affect spousal benefits, though, in that spousal benefits are paid based on a percentage of the worker's primary insurance amount (PIA). A person's PIA is equal to their Social Security retirement benefit rate if they start drawing their benefits at full retirement age (FRA). Therefore, if a worker's PIA is lower due to WEP, any auxiliary (e.g. spousal, child) benefits payable from that worker's record would also be lower.
Which does imply the spousal benefit is calculated from the PIA with WEP.
So with that, and your confirmation, I've changed the program.
What’s tricky is that the FRA calculation now considers WEP, which means any new WEP pension that starts in the TIME MACHINE must recalculate not only the SS pension, but also the spousal benefit.