added support for interest-only and partial amortization in "degree" variable