The Support Plan module doesn't calculate the correct credits for a multi-year contract

The Support Plan module doesn't calculate the correct credits for a multi-year contract

When we create a contract that spans more than a year, the remaining credits for the support plan are not correctly calculated.