Rocky_Mountain_Vending/.pnpm-store/v10/files/16/57321b90dca22e8294b1f296977b9a866aa829dd279e8b4008515c5426d56e8b3f6b1b2be2acfafb19aa60a6ce7fafea239161b26651c1134da86203177faf
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

30 lines
727 B
Text

"use strict";
exports.monthsToQuarters = monthsToQuarters;
var _index = require("./constants.cjs");
/**
* @name monthsToQuarters
* @category Conversion Helpers
* @summary Convert number of months to quarters.
*
* @description
* Convert a number of months to a full number of quarters.
*
* @param months - The number of months to be converted.
*
* @returns The number of months converted in quarters
*
* @example
* // Convert 6 months to quarters:
* const result = monthsToQuarters(6)
* //=> 2
*
* @example
* // It uses floor rounding:
* const result = monthsToQuarters(7)
* //=> 2
*/
function monthsToQuarters(months) {
const quarters = months / _index.monthsInQuarter;
return Math.trunc(quarters);
}