ForHosting KIT · Home, food & hobbies

Quarantine food calculator

4 people staying home for 14 days, at 2 servings of rice each per day, need 112 servings of rice: list your staples and get the total servings for each one. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
People
4
Days
14
You get
Person days
56 servings
Food count
4
Total servings
308

Households facing a stay-at-home order, a sick-day isolation, or a planned pantry restock need a repeatable answer to how many servings of each staple to put on the shelf before the door stays closed. Guessing from a half-empty cupboard undercounts rice and beans; scaling a single dinner recipe by calendar days ignores that every person eats every day. This quarantine food calculator multiplies household size by isolation days by each food's daily per-person portion and returns total servings per food type so shopping lists and bulk orders stay honest.

What quarantine food totals mean and how daily portions scale

A quarantine pantry plan is a serving budget, not a cooked recipe and not a calorie target. Emergency-preparedness checklists and public-health isolation guides describe household food as daily portions per person multiplied by the number of days the household expects to stay home. That product is the number of servings of each staple you must already have, or must buy, before shopping trips stop.

This calculator freezes that idea into one formula: for every food type, total servings equals people times days times that food's daily per-person portion. People is the household size as a whole number of mouths to feed. Days is the isolation window as a whole number of calendar days.

Daily portion is how many servings of that staple one person eats in one day—two servings of rice, one and a half of beans, one of canned vegetables, one of pasta. The same person-day multiplier applies to every row, so a four-person, fourteen-day stay with two rice servings per person per day is one hundred twelve rice servings, not a guess from the last dinner you cooked. Portions are planning units, not grams, cups, or calories; convert those totals to bag sizes and can counts in your own layer.

Real appetite varies with age mix, leftover soup, and how often you cook from dry goods; apply a household multiplier afterward if your family eats more than the listed portions.

Where a quarantine food calculator earns its keep

Family preparedness sites need a single source of truth when a household enters headcount, isolation days, and a short staple list so the shopping page matches the free calculator on the marketing landing. School and workplace isolation desks can convert a stated stay-home window into pantry servings without maintaining a private spreadsheet per family. Meal-kit, grocery, and emergency-kit SaaS tools can attach a quarantine line item next to ordinary weekly baskets using the same people, days, and foods fields already captured in the intake form.

Failed validation does not consume balance. Document that results are serving-budget estimates—not measured consumption, not nutritional adequacy, and not medical advice—keep the formula visible in product copy, and you get reproducible pantry math for hosts, CMS blocks, and edge workers without hosting your own isolation spreadsheet. When you need to scale a cooked recipe instead of a pantry, use a dedicated recipe multiplier; this page owns the quarantine food search intent: household servings from daily portions and isolation days.

School and workplace isolation desks

Convert a stated stay-home window into pantry serving counts without maintaining a private spreadsheet per family or employee.

Grocery, meal-kit, and emergency-kit SaaS

Attach a quarantine line item next to ordinary weekly baskets using the same people, days, and foods fields already captured at intake.

What happens if people or days is zero, negative, or fractional?

People and days must be positive integers; a non-integer headcount or isolation window cannot produce a meaningful pantry serving budget and is not billed.

Is this nutritional or medical advice?

No. It is a deterministic serving-budget estimate for shopping lists and kit builders. Real intake varies with age and leftovers; apply your own household multiplier if needed. It does not diagnose, treat, or recommend isolation length.

How do I work out several foods at once?

Enter each food with its own daily portion per person. All of them share the same people-times-days multiplier, 56 for 4 people over 14 days, so beans at 1.5 come to 84 servings and the whole list totals 308.

Are the results in grams or cups?

Neither. Results are servings, a planning unit, not grams, cups or calories. Turn each total into bag sizes or can counts yourself before you shop.

What if my family eats more than the portions I listed?

Raise the daily portion for that food or apply your own household multiplier afterwards. The calculator only multiplies the numbers you choose and does not adjust for age or appetite.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/cook/quarantine-food

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/cook/quarantine-food \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"people":4,"days":14,"foods":[{"name":"rice","daily_portion":2},{"name":"beans","daily_portion":1.5},{"name":"canned vegetables","daily_portion":1},{"name":"pasta","daily_portion":1}]}'
{
  "people": 4,
  "days": 14,
  "foods": [
    {
      "name": "rice",
      "daily_portion": 2
    },
    {
      "name": "beans",
      "daily_portion": 1.5
    },
    {
      "name": "canned vegetables",
      "daily_portion": 1
    },
    {
      "name": "pasta",
      "daily_portion": 1
    }
  ]
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "cook.quarantine_food",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_people1000
max_days365
max_foods40
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

People and days must be positive integers; zero, negative, and fractional headcounts fail with invalid_input instead of inventing an empty pantry.

What quarantine food totals mean and how daily portions scale

The arithmetic never changes inside the API, so browser widgets, shopping-list jobs, and CMS blocks stay byte-stable for the same inputs. The endpoint does not invent default menus, nutritional advice, or medical isolation rules. It only multiplies the numbers you already chose so pantry math stays honest across every channel.

Input contract, response shape, and error behaviour

Example: four people, fourteen days, rice at two servings, beans at one and a half, canned vegetables at one, and pasta at one yields one hundred twelve, eighty-four, fifty-six, and fifty-six servings respectively and three hundred eight servings in total. Example: one person, seven days, oatmeal at one serving per day yields seven oatmeal servings. Pin these deterministic products in tests so shopping lists and browser widgets stay byte-stable across releases. POST a JSON body with three required fields. people is a positive integer for household size, from one through one thousand. Aliases such as household, household_size, persons, n, count, and people_count are accepted so forms can reuse familiar keys. days is a positive integer for the quarantine length, from one through three hundred sixty-five. Aliases include quarantine_days, duration_days, n_days, isolation_days, and day_count. Both fields may arrive as JSON integers or as numeric strings of digits. Fractional, zero, and negative values fail because a mouth to feed and a calendar day are whole counts, not half-household guesses. foods is a non-empty array of records, each with a non-empty name and a finite non-negative daily_portion in servings per person per day. Aliases items, pantry, list, and food_list are accepted. On success the body includes people and days as echoed integers, person_days as their product, food_count as the number of rows, foods as the same rows with total_servings filled in, total_servings as the sum across types, unit always servings, formula restating people times days times daily portion, and message for UI copy. Missing fields, non-integer people or days, empty food lists, and negative portions fail with invalid_input and are not billed.

Where a quarantine food calculator earns its keep

Pair the totals with your own package sizes, allergen labels, and water or medicine lists, and the API remains the stable numeric core while your brand layer owns presentation.

Family preparedness and stay-home planners

Turn household size, isolation days, and a staple list into stable total_servings per food type so the shopping page matches the free on-site calculator.

How does the quarantine food calculator work?

Send people (positive integer household size), days (positive integer isolation length), and foods (rows with name and daily_portion). The API multiplies people × days × daily_portion for each food type and returns total servings per type plus a grand total.

What does daily_portion mean?

Servings of that food one person eats in one day. Two rice servings per person per day for four people over fourteen days is one hundred twelve rice servings. Portions are planning units, not grams or calories.

What does the quarantine food calculator cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →