Open this example in the interactive library
Live preview
Source code
// components/TimeboxConversion.tsx
export default function TimeboxConversion({ hours = 8 }: { hours?: number } = {}) {
return (
<output>
{Math.floor((hours * 60) / 25)} full 25-minute sessions and{" "}
{Math.round((hours * 60) % 25)} minutes left
</output>
);
}
