gs_spending_bound function

Derive spending bound for group sequential boundary