This is from the perspective of the company so you’d be 40k in the hole. You’d want something like “Upon agreement to the terms the licensee will receive forty thousand US dollars ($40,000) within ninety (90) from the licensor. There will be a penalty of one thousand US dollars ($1,000) for every day after that period if not paid.”
Root cause analysis. What happened, why, how it was fixed.