{"permit":"VA0020982","name":"Middletown Town","state":"VA","as_of":"2026-10-22","source":{"publisher":"U.S. EPA — ECHO / ICIS-NPDES national file","as_of":"2026-10-22","page":"/dmr/p/VA0020982"},"about":[{"label":"What it is","text":"Sewage treatment plant"},{"label":"Where","text":"Middletown, Virginia","href":"https://www.openstreetmap.org/?mlat=39.030448&mlon=-78.283323#map=14/39.030448/-78.283323"},{"label":"Last 12 months","text":"Over a limit 7 times, last in May 2026 (BOD, carbonaceous [5 day, 20 C]; Nitrogen, ammonia total [as N])"},{"label":"Permit","text":"In force until Sep 30, 2031"}],"renewal_due":null,"renewal_check":null,"sector":null,"limits_from_version":null,"record":{"last_filed":"2026-08-31","over":7,"over_by":[["BOD, carbonaceous [5 day, 20 C]",4],["Nitrogen, ammonia total [as N]",3]],"window":["2025-10-01","2026-09-30"]},"over_limits":[{"parameter":"BOD, carbonaceous [5 day, 20 C]","times":4,"find_limits":{"parameter":"cbod5","place":"US-VA","medium":"water_discharge"},"get":"https://passage-data.com/api/v1/limits?parameter=cbod5&place=US-VA&medium=water_discharge"},{"parameter":"Nitrogen, ammonia total [as N]","times":3,"find_limits":{"parameter":"ammonia","place":"US-VA","medium":"surface_water"},"get":"https://passage-data.com/api/v1/limits?parameter=ammonia&place=US-VA&medium=surface_water"}],"upcoming":[{"parameter":"Nitrogen, ammonia total [as N]","outfall":"001","limit":1.6,"unit":"mg/L","statistic":"monthly average","statistic_code":"MK","begin":"2030-10-01","kind":"tighter","months":["JAN","FEB","MAR","APR","MAY"],"now":{"median":2.88,"n":5},"times_limit":1.8},{"parameter":"Nitrogen, ammonia total [as N]","outfall":"001","limit":0.64,"unit":"mg/L","statistic":"monthly average","statistic_code":"MK","begin":"2030-10-01","kind":"tighter","months":["JUN","JUL","AUG","SEP","OCT","NOV","DEC"],"now":{"median":0.11,"n":4},"times_limit":0.172},{"parameter":"Nitrogen, ammonia total [as N]","outfall":"001","limit":2.7,"unit":"mg/L","statistic":"maximum weekly average","statistic_code":"MS","begin":"2030-10-01","kind":"tighter","months":["JAN","FEB","MAR","APR","MAY"],"now":{"median":4,"n":5},"times_limit":1.48},{"parameter":"Nitrogen, ammonia total [as N]","outfall":"001","limit":0.85,"unit":"mg/L","statistic":"weekly average","statistic_code":"WA","begin":"2030-10-01","kind":"tighter","months":["JUN","JUL","AUG","SEP","OCT","NOV","DEC"],"now":null}],"limits":[{"outfall":"001","parameter":"Oxygen, dissolved [DO]","parameter_code":"00300","statistic":"minimum","qualifier":">=","value":"5.7","unit":"mg/L","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"pH","parameter_code":"00400","statistic":"minimum","qualifier":">=","value":"6.5","unit":"SU","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"pH","parameter_code":"00400","statistic":"maximum","qualifier":"<=","value":"9","unit":"SU","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Solids, total suspended","parameter_code":"00530","statistic":"monthly average","qualifier":"<=","value":"30","unit":"mg/L","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Solids, total suspended","parameter_code":"00530","statistic":"maximum weekly average","qualifier":"<=","value":"45","unit":"mg/L","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Solids, total suspended","parameter_code":"00530","statistic":"monthly average","qualifier":"<=","value":"68","unit":"kg/d","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Solids, total suspended","parameter_code":"00530","statistic":"maximum weekly average","qualifier":"<=","value":"102","unit":"kg/d","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Solids, total suspended","parameter_code":"00530","statistic":"monthly average","qualifier":null,"value":null,"unit":"mg/L","report_only":true,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Nitrogen, ammonia total [as N]","parameter_code":"00610","statistic":"monthly average","qualifier":"<=","value":"1.6","unit":"mg/L","report_only":false,"enforceable":true,"months":["JUN","JUL","AUG","SEP","OCT","NOV","DEC"],"limit_set":null},{"outfall":"001","parameter":"Nitrogen, ammonia total [as N]","parameter_code":"00610","statistic":"monthly average","qualifier":"<=","value":"3.4","unit":"mg/L","report_only":false,"enforceable":true,"months":["JAN","FEB","MAR","APR","MAY"],"limit_set":null},{"outfall":"001","parameter":"Nitrogen, ammonia total [as N]","parameter_code":"00610","statistic":"maximum weekly average","qualifier":"<=","value":"2.2","unit":"mg/L","report_only":false,"enforceable":true,"months":["JUN","JUL","AUG","SEP","OCT","NOV","DEC"],"limit_set":null},{"outfall":"001","parameter":"Nitrogen, ammonia total [as N]","parameter_code":"00610","statistic":"maximum weekly average","qualifier":"<=","value":"4.6","unit":"mg/L","report_only":false,"enforceable":true,"months":["JAN","FEB","MAR","APR","MAY"],"limit_set":null},{"outfall":"001","parameter":"Flow, in conduit or thru treatment plant","parameter_code":"50050","statistic":"monthly average","qualifier":"<=","value":".6","unit":"MGD","report_only":false,"enforceable":false,"months":"all","limit_set":null},{"outfall":"001","parameter":"Flow, in conduit or thru treatment plant","parameter_code":"50050","statistic":"maximum","qualifier":null,"value":null,"unit":"MGD","report_only":true,"enforceable":false,"months":"all","limit_set":null},{"outfall":"001","parameter":"E. coli","parameter_code":"51040","statistic":"monthly geometric mean","qualifier":"<=","value":"126","unit":"#/100mL","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Nitrogen, Total As N","parameter_code":"51425","statistic":"monthly average","qualifier":"<=","value":"5","unit":"mg/L","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Phosphorus, Total As P","parameter_code":"51426","statistic":"monthly average","qualifier":"<=","value":".3","unit":"mg/L","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"BOD, carbonaceous [5 day, 20 C]","parameter_code":"80082","statistic":"monthly average","qualifier":"<=","value":"15","unit":"mg/L","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"BOD, carbonaceous [5 day, 20 C]","parameter_code":"80082","statistic":"maximum weekly average","qualifier":"<=","value":"22","unit":"mg/L","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"BOD, carbonaceous [5 day, 20 C]","parameter_code":"80082","statistic":"monthly average","qualifier":"<=","value":"24","unit":"kg/d","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"BOD, carbonaceous [5 day, 20 C]","parameter_code":"80082","statistic":"maximum weekly average","qualifier":"<=","value":"45","unit":"kg/d","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"BOD, carbonaceous [5 day, 20 C]","parameter_code":"80082","statistic":"monthly average","qualifier":null,"value":null,"unit":"mg/L","report_only":true,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"BOD, carb-5 day, 20 deg C, percent removal","parameter_code":"80091","statistic":"monthly average minimum","qualifier":">=","value":"85","unit":"%","report_only":false,"enforceable":true,"months":"all","limit_set":null},{"outfall":"001","parameter":"Solids, suspended percent removal","parameter_code":"81011","statistic":"monthly average minimum","qualifier":">=","value":"85","unit":"%","report_only":false,"enforceable":true,"months":"all","limit_set":null}],"next":[{"tool":"find_limits","says":"What do the rules say about what it went over on? find_limits gives the cited state and federal limits for it, each with its rule; `get` is the address to fetch, and `over_limits` holds one for each parameter.","arguments":{"parameter":"cbod5","place":"US-VA","medium":"water_discharge"},"needs":{},"get":"https://passage-data.com/api/v1/limits?parameter=cbod5&place=US-VA&medium=water_discharge","url":"https://passage-data.com/api/v1/limits?parameter=cbod5&place=US-VA&medium=water_discharge","page":"https://passage-data.com/limits/US-VA/cbod5"},{"tool":"check_dmr","says":"Before your user files this permit's DMR: check_dmr sets each value beside the permit's limit for that period, with EPA's violation rule's verdict.","arguments":{"permit":"VA0020982"},"needs":{"period_end":"The reporting period: its month (2026-09).","values":"The period's values as your user will file them: [{outfall, parameter, statistic, value, unit}, ...]."},"post":"/api/v1/dmr/check","url":"https://passage-data.com/api/v1/dmr/check","page":"https://passage-data.com/dmr/?permit=VA0020982"},{"tool":"fill_dmr","says":"Has your user the plant's raw daily results? fill_dmr computes the period's DMR values from them, each with the rows it came from.","arguments":{"permit":"VA0020982"},"needs":{"period_end":"The reporting period: its month (2026-09).","rows":"The plant's results: [{date, parameter, value, unit, point}, ...]; or `table`, the lab's or plant's export as text."},"post":"/api/v1/dmr/fill","url":"https://passage-data.com/api/v1/dmr/fill","page":"https://passage-data.com/dmr/?permit=VA0020982"}]}