America/Bogota
blog // post
session
All posts
2026-11-17

A date span is not the 360-day year

On the prestaciones estimate at tools.danieldiaz.dev/prestaciones, two dates fill the day count with calendar days, and both ends count. The formulas still divide by 360, and the count stops at 360. February stays at the days the calendar has. A full calendar year becomes 360 because that is the ceiling. The business-day page is a different count.
2026-11-17
Suppose the following case. It is hypothetical, so the dates below are an example, not a liquidation from a desk. On a Tuesday in Cali, someone in payroll needs a rough prestaciones number before the close. They set a monthly salary, then the hire date and the last day of the period, because two dates feel more serious than a number typed by hand. The page accepts the dates. It does not turn them into a commercial year.
Which card you open is a different note: ten small tools need one door, not ten bookmarks. This note is the estimate itself, on tools.danieldiaz.dev/prestaciones. The page takes a monthly salary and a count of days. That count is what the formulas use. Cesantías are the base times the days, over 360. Prima uses the same division. Interest on cesantías is 12 percent of those cesantías, times the days over 360. Vacaciones are the monthly salary times the days, over 720. The year under those lines is 360 days. A semester in that year is 180. You can also set a start and an end. The count then becomes the calendar days from the first date through the last, with both ends included. A start of February 1, 2026 and an end of February 28, 2026 is 28 days, not 30. January 1 through January 31 is 31 days, not 30. The same date on both ends is one day, not zero. The page does not rewrite each month as 30. The count that enters the formulas sits between 1 and 360. A span from January 1, 2026 through December 31, 2026 is 365 calendar days. The count that remains is 360, because that is the ceiling, not because each month was converted. If the end is earlier than the start, the dates do not replace the count you already had. One date without the other does not move it either. If you type the days yourself, the dates come off. The number on the page is then the one you typed, inside that same ceiling. It is no longer the span. When you have not set dates, the count starts at 180. That is a semester of the 360-day year. It is not whatever is left of this month.
Treat the two dates as the liquidation. The page counted the calendar, included both ends, and stopped at 360. It did not skip Saturday, Sunday, or a festivo. It did not ask which days were worked. A day the person did not work still sits inside the span if those are the dates you set. Ask the business-day calendar to do this job. That page, at tools.danieldiaz.dev/habiles, skips Saturday, Sunday, and the observed festivo. I wrote that count in a puente Monday is not a workday. It will not divide by 360, and it will not return prima. A chat can explain a commercial year. It does not keep the salary, the count, and the four lines in one place you can change and read again. That split is already in prestaciones need a calculator, not a chat. This note is the count the calculator actually uses.
  1. It is not the días hábiles calendar. A Monday that is a puente still counts here if it sits between the two dates.
  2. It is not the transport aid. Whether that aid enters the base of cesantías and prima, and stays out of vacaciones, is the note in the auxilio de transporte is not one base. On this page the 2026 aid enters only when the monthly salary is at or under two monthly minimum wages, and only into that base. Vacaciones stay on the monthly salary. The day count is a different question.
  3. It is not the contract, and it is not the official liquidation. The page does not read the writing. It does not know a retiro, a salary that changed in the middle of the period, or which days were actually worked. The number is an estimate from the salary and the count you left on it. Why the workshop stays off that promise is in why tools.danieldiaz.dev lives apart from ECORPA.
Three questions.
  1. Did the count come from the two dates, and if so, do you want calendar days with both ends included?
  2. Is 360 the year you mean, including a February that stayed at 28?
  3. If the span ran past a full calendar year, are you ready for the count to stop at 360?
If the first answer is yes and you wanted months of 30 days, type the days yourself. The dates come off, and the formulas use the number you typed. A date span is not the 360-day year. It fills the count. The year underneath stays 360.