This is going to be the simplest of the simple bond for calculations of coupon and final payments

Lets assume the following bond details

Lets take the following steps

  1. Calculate each coupon payment date, starting from the issue date.
  2. For each coupon period, calculate the payment date, adjusting for any holidays/weekends.
  3. Coupon payments: 5% of par, paid semi-annually.
  4. Final payment: Face value + last coupon at maturity.

https://github.com/simulationcoder/Visualize/blob/main/corporateBond.py