expected_accrual function

Piecewise constant expected accrual