Open this example in the interactive library
Live preview
Source code
// components/BillableIncrementRounding.tsx
export default function BillableIncrementRounding({
hours = 8,
}: { hours?: number } = {}) {
return (
<output>
Chargeable hours: {Math.ceil(hours * 4) / 4} at quarter-hour intervals
</output>
);
}
