Can anyone help me with this problem? I'm stuck

When will a payment of 300,000 galleons cancel Mr. Weasley’s liabilities to Gringott’s Bank of 100,000 galleons due after 2 years and 150,000 galleons due after 5 years if money is worth at an effective rate of 12%?