For the purpose of sharing unpaid interest of some bonds, compute elapsed days assuming every month has 30 days and every year 360 days.
For example, treat Feburary 15 to March 15 as 30 days even though it is actually 28.
Demo.CalendarFixture | |||
from | to | thirty360() | actual() |
Feb 15, 2003 | Mar 15, 2003 | 30 | 28 |
Feb 15, 2003 | Mar 16, 2003 | 31 | 29 |