I meandered around the WindowPost deadline and vesting schedule logic in the builtin Actors code today. I'm sharing my notes here in case others find them helpful.

Window Posts, Proving Periods, and Deadlines

Locking/Unlocking of Rewards and the Vesting Schedule