A dispatch estimate needs a clear starting date and handling-time rule. Disclose what happens on non-working days if the estimate is shown to customers.
Worked example
// app/print/page.tsx
export default async function BinderyDispatchEstimate({
searchParams,
}: {
searchParams: Promise<Record<string, string | string[] | undefined>>;
}) {
const { copies } = await searchParams;
const n = Math.max(1, Number(copies) || 100);
return <p>{Math.ceil(n / 80)} production days at 80 copies per day</p>;
}Implementation notes
Formatting a local dispatch date after using UTC arithmetic can shift the displayed day. Use one explicit calendar convention across the calculation.
Try it yourself
Compare an order placed early in the week with one placed on a Friday.
Open the Next.js example →Editorial date September 3, 2026 · Published December 6, 2026