Electric Circuits·data-rate-conversion
Data Rate Conversion
Given a data size per unit (e.g., bytes per image), a frequency (e.g., images per second), and time duration, compute the total data volume by chaining unit conversions across time intervals (seconds, minutes, hours).
✓ All 2 test cases pass.
Inputs
Test cases
These cases run live in your browser every time the page loads. If any fail, the calculator is broken — file an issue.
| # | Inputs | Expected | Got | Status |
|---|---|---|---|---|
| 1 | {"bytes_per_image":24883200,"images_per_sec":30,"duration_hours":2,"bytes_per_tb":1000000000000} | 5.375 | 5.375 | ✓ |
| 2 | {"bytes_per_image":1000000,"images_per_sec":60,"duration_hours":1,"bytes_per_tb":1000000000000} | 0.216 | 0.216 | ✓ |
APIDeveloper APICall this calculator from codeexpand ↓
Endpoint
POST
/api/calculators/electric-circuits/data-rate-conversion/computeInputs (4)
bytes_per_imageintegerdefault24883200images_per_secintegerdefault30duration_hoursnumberdefault2bytes_per_tbnumberdefault1000000000000
Example
curl -sX POST http://localhost:3001/api/calculators/electric-circuits/data-rate-conversion/compute \
-H "Content-Type: application/json" \
-d '{"inputs":{"bytes_per_image":24883200,"images_per_sec":30,"duration_hours":2,"bytes_per_tb":1000000000000}}'Try it live
Edit the body below, then click Call API.Request body
Response
(click Call API to see the response)Source: Pattern from: James W. Nilsson, Susan A. Riedel - Electric Circuits 11e - Instructor’s Solution Manual-Pearson (2019).pdf. Reproduces a standard data-rate-conversion computation; problem text paraphrased.
AI disclosure: Calculator code generated by anthropic/claude-haiku-4-5-20251001; verified by 2 test cases.