<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tinashe Nedi</title>
    <description>The latest articles on DEV Community by Tinashe Nedi (@tinashe_).</description>
    <link>https://dev.to/tinashe_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3825997%2Fd9c81ed2-7c21-4570-ba4b-ea7acab92ed5.png</url>
      <title>DEV Community: Tinashe Nedi</title>
      <link>https://dev.to/tinashe_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tinashe_"/>
    <language>en</language>
    <item>
      <title>I Reverse-Engineered NYC Local Law 97. Here's What 40% of Buildings Are Getting Wrong.</title>
      <dc:creator>Tinashe Nedi</dc:creator>
      <pubDate>Fri, 15 May 2026 17:34:27 +0000</pubDate>
      <link>https://dev.to/tinashe_/i-reverse-engineered-nyc-local-law-97-heres-what-40-of-buildings-are-getting-wrong-2n31</link>
      <guid>https://dev.to/tinashe_/i-reverse-engineered-nyc-local-law-97-heres-what-40-of-buildings-are-getting-wrong-2n31</guid>
      <description>&lt;h1&gt;
  
  
  LL97 Penalties Aren’t What Most Calculators Show
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The $268/Tonne Problem
&lt;/h2&gt;

&lt;p&gt;NYC Local Law 97 is one of the most aggressive building performance standards in the United States. Buildings larger than 25,000 square feet can be fined &lt;strong&gt;$268 per metric tonne of CO₂e&lt;/strong&gt; above their annual emissions limit.&lt;/p&gt;

&lt;p&gt;After reviewing hundreds of LL97 estimates, I noticed the same issue repeatedly appearing in reports and calculators: the carbon math is often wrong.&lt;/p&gt;

&lt;p&gt;Most tools use the EPA eGRID electricity emissions factor for NYISO (&lt;code&gt;0.000371 tCO₂e/kWh&lt;/code&gt;).&lt;br&gt;&lt;br&gt;
LL97 does not use EPA eGRID values.&lt;/p&gt;

&lt;p&gt;That difference alone can completely change a building’s projected penalties.&lt;/p&gt;


&lt;h1&gt;
  
  
  What LL97 Actually Uses
&lt;/h1&gt;

&lt;p&gt;According to &lt;strong&gt;1 RCNY §103-14 Table 1&lt;/strong&gt;, the official LL97 emissions coefficients are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Fuel Source&lt;/th&gt;
&lt;th&gt;LL97 Coefficient&lt;/th&gt;
&lt;th&gt;EPA eGRID (NYISO)&lt;/th&gt;
&lt;th&gt;Difference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Electricity&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.000288962 tCO₂e/kWh&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.000371 tCO₂e/kWh&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;-22%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Natural Gas&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.00005311 tCO₂e/kBtu&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.0000531 tCO₂e/kBtu&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;≈0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#2 Fuel Oil&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.00007421 tCO₂e/kBtu&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0.0000749 tCO₂e/kBtu&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;-1%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The biggest discrepancy is electricity. LL97’s electricity coefficient is roughly &lt;strong&gt;22% lower&lt;/strong&gt; than the EPA value most calculators rely on.&lt;/p&gt;


&lt;h1&gt;
  
  
  Why the Numbers Are Different
&lt;/h1&gt;

&lt;p&gt;LL97 was written using New York City’s 2018 grid baseline.&lt;/p&gt;

&lt;p&gt;EPA eGRID values are updated regularly to reflect the current generation mix. Since 2018, NYC’s electricity supply has shifted, with greater reliance on natural gas and fewer hydroelectric imports. As a result, EPA values now show higher emissions.&lt;/p&gt;

&lt;p&gt;LL97 intentionally locked in the earlier baseline so building owners would not be penalized for grid changes outside of their control.&lt;/p&gt;


&lt;h1&gt;
  
  
  Real Example: 75,000 SF Office Building
&lt;/h1&gt;
&lt;h3&gt;
  
  
  Building Information
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Annual electricity usage: &lt;code&gt;1,250,000 kWh&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Annual natural gas usage: &lt;code&gt;8,500 therms&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Building occupancy: &lt;code&gt;Office (Group B)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Building size: &lt;code&gt;75,000 SF&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  2024–2029 LL97 Limit
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0.00536 tCO₂e/sf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Incorrect Calculation Using EPA eGRID
&lt;/h1&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;elec_co2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1_250_000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.000371&lt;/span&gt;
&lt;span class="n"&gt;gas_co2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;850_000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.00005311&lt;/span&gt;

&lt;span class="n"&gt;total_co2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;elec_co2&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;gas_co2&lt;/span&gt;  &lt;span class="c1"&gt;# 508.6 tCO₂e
&lt;/span&gt;
&lt;span class="n"&gt;intensity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;total_co2&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;75_000&lt;/span&gt;  &lt;span class="c1"&gt;# 0.00678 tCO₂e/sf
&lt;/span&gt;
&lt;span class="n"&gt;limit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.00536&lt;/span&gt;

&lt;span class="n"&gt;excess&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;intensity&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;75_000&lt;/span&gt;  &lt;span class="c1"&gt;# 106.5 tCO₂e
&lt;/span&gt;
&lt;span class="n"&gt;penalty&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;excess&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;268&lt;/span&gt;  &lt;span class="c1"&gt;# $28,542/year
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Using EPA coefficients produces a projected penalty of:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$28,542 per year
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  Correct Calculation Using Official LL97 Coefficients
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;elec_co2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1_250_000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.000288962&lt;/span&gt;
&lt;span class="n"&gt;gas_co2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;850_000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.00005311&lt;/span&gt;

&lt;span class="n"&gt;total_co2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;elec_co2&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;gas_co2&lt;/span&gt;  &lt;span class="c1"&gt;# 406.3 tCO₂e
&lt;/span&gt;
&lt;span class="n"&gt;intensity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;total_co2&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;75_000&lt;/span&gt;  &lt;span class="c1"&gt;# 0.00542 tCO₂e/sf
&lt;/span&gt;
&lt;span class="n"&gt;limit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.00536&lt;/span&gt;

&lt;span class="n"&gt;excess&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;intensity&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;75_000&lt;/span&gt;  &lt;span class="c1"&gt;# 4.5 tCO₂e
&lt;/span&gt;
&lt;span class="n"&gt;penalty&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;excess&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;268&lt;/span&gt;  &lt;span class="c1"&gt;# $1,206/year
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using the actual LL97 coefficients changes the result dramatically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$1,206 per year
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is a difference of more than:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$27,000 annually
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;from the exact same building data.&lt;/p&gt;




&lt;h1&gt;
  
  
  The 2030 Compliance Cliff
&lt;/h1&gt;

&lt;p&gt;LL97 has two major compliance periods:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;2024–2029&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;2030–2034&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The second period is where the law becomes significantly more aggressive, with emissions limits dropping by roughly 40–50% depending on occupancy type.&lt;/p&gt;

&lt;p&gt;For this same office building:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Compliance Period&lt;/th&gt;
&lt;th&gt;Estimated Penalty&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2024–2029&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$1,206/year&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2030–2034&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$41,832/year&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Many calculators fail to model this transition correctly.&lt;/p&gt;




&lt;h1&gt;
  
  
  Getting LL97 Calculations Right
&lt;/h1&gt;

&lt;h2&gt;
  
  
  1. Use Official LL97 Coefficients
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;LL97_COEFFICIENTS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;electricity&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.000288962&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;natural_gas_kbtu&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.00005311&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fuel_oil_2&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.00007421&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fuel_oil_4&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.00007753&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;district_steam&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.00004489&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These values come directly from &lt;strong&gt;1 RCNY §103-14 Table 1&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Identify the Correct Occupancy Group
&lt;/h2&gt;

&lt;p&gt;LL97 emissions limits are occupancy-specific.&lt;/p&gt;

&lt;p&gt;An office building, multifamily property, hospital, hotel, or retail space will all have different allowable emissions intensities under Table 2.&lt;/p&gt;

&lt;p&gt;Incorrect occupancy classification can invalidate the entire calculation.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Include DER (Distributed Energy Resource) Deductions
&lt;/h2&gt;

&lt;p&gt;LL97 allows buildings to deduct qualifying renewable generation from their reported emissions.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;der_deduction_tco2e&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;annual_solar_kwh&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.000288962&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 50 kW rooftop solar installation generating &lt;code&gt;65,000 kWh/year&lt;/code&gt; would reduce emissions by:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;deduction&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;65_000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.000288962&lt;/span&gt;  &lt;span class="c1"&gt;# 18.8 tCO₂e/year
&lt;/span&gt;
&lt;span class="n"&gt;penalty_saved&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;18.8&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;268&lt;/span&gt;  &lt;span class="c1"&gt;# $5,038/year
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Over 25 years, that becomes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$125,950 in avoided LL97 penalties
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;before even considering utility savings.&lt;/p&gt;




&lt;h1&gt;
  
  
  API Example
&lt;/h1&gt;

&lt;p&gt;The &lt;a href="https://rapidapi.com/bethelnedi/api/energy-audit-automation-api" rel="noopener noreferrer"&gt;Energy Audit Automation API&lt;/a&gt; handles LL97 calculations automatically using the correct coefficients and occupancy rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Request
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST https://energy-audit-api.p.rapidapi.com/audit/full &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-RapidAPI-Key: YOUR_KEY"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "property_type": "office",
    "sq_ft": 75000,
    "annual_kwh": 1250000,
    "annual_therms": 8500,
    "city": "nyc",
    "grid_region": "NYISO"
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Response
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ll97"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"emissions_limit_2024"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.00536&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"your_emissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.00542&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"excess_tco2e"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;4.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"penalty_2024_usd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1206&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"penalty_2030_usd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;41832&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"compliant_now"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"compliant_2030"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1 RCNY §103-14 Table 1 &amp;amp; 2"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  Red Flags in LL97 Proposals
&lt;/h1&gt;

&lt;p&gt;Watch for these signs when reviewing vendor reports or compliance tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;“EPA emission factor” referenced without LL97 citations&lt;/li&gt;
&lt;li&gt;No source documentation for penalty calculations&lt;/li&gt;
&lt;li&gt;Identical penalties shown for both 2024 and 2030 periods&lt;/li&gt;
&lt;li&gt;No occupancy group classification included&lt;/li&gt;
&lt;li&gt;No explanation of DER deductions or renewable offsets&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Further Reading
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;NYC Administrative Code §28-320&lt;br&gt;&lt;br&gt;
&lt;a href="https://codelibrary.amlegal.com/codes/newyorkcity/" rel="noopener noreferrer"&gt;https://codelibrary.amlegal.com/codes/newyorkcity/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;1 RCNY §103-14&lt;br&gt;&lt;br&gt;
Official LL97 coefficients and emissions limits&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;LL97 Calculator&lt;br&gt;&lt;br&gt;
&lt;a href="https://ll97calculator.com/" rel="noopener noreferrer"&gt;https://ll97calculator.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Final Takeaway
&lt;/h1&gt;

&lt;p&gt;A surprising number of LL97 estimates are based on the wrong carbon coefficients.&lt;/p&gt;

&lt;p&gt;If a calculator or proposal does not explicitly reference &lt;strong&gt;1 RCNY §103-14&lt;/strong&gt;, there is a good chance the penalty estimate is inaccurate.&lt;/p&gt;

&lt;p&gt;Under LL97, the difference between using EPA values and the actual legal coefficients can mean the difference between compliance and tens of thousands of dollars in annual penalties.&lt;/p&gt;

</description>
      <category>climatetech</category>
      <category>nycbuildings</category>
      <category>proptech</category>
      <category>smartbuildings</category>
    </item>
    <item>
      <title>Why I stopped using flat $/kWh to size commercial battery storage.</title>
      <dc:creator>Tinashe Nedi</dc:creator>
      <pubDate>Tue, 31 Mar 2026 13:03:58 +0000</pubDate>
      <link>https://dev.to/tinashe_/why-i-stopped-using-flat-kwh-to-size-commercial-battery-storage-2a0a</link>
      <guid>https://dev.to/tinashe_/why-i-stopped-using-flat-kwh-to-size-commercial-battery-storage-2a0a</guid>
      <description>&lt;p&gt;I've been building energy APIs for about four years. The thing that kept bothering me wasn't the code — it was watching tools I respected give completely wrong BESS cost estimates because they multiplied system size by a flat dollars-per-kilowatt-hour figure.&lt;/p&gt;

&lt;p&gt;That's not how battery storage costs work. And it matters a lot when someone is deciding whether to spend $800,000 on a system.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with flat $/kWh
&lt;/h2&gt;

&lt;p&gt;Most BESS calculators I've seen do something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;
&lt;span class="c1"&gt;# What most tools do — this is wrong
&lt;/span&gt;&lt;span class="n"&gt;system_cost&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;capacity_kwh&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;cost_per_kwh&lt;/span&gt;  &lt;span class="c1"&gt;# e.g. 500 kWh * $400 = $200,000
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The issue is that battery storage has two fundamentally different cost components that scale differently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Energy cost&lt;/strong&gt; — scales with kWh (how much you can store)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Power cost&lt;/strong&gt; — scales with kW (how fast you can charge/discharge)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A 500 kWh system with a 250 kW inverter has a completely different cost structure than a 500 kWh system with a 500 kW inverter. The flat $/kWh model treats them identically.&lt;/p&gt;

&lt;h2&gt;
  
  
  The NREL ATB two-component model.
&lt;/h2&gt;

&lt;p&gt;NREL's Annual Technology Baseline (ATB) 2024 separates these correctly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Total Cost ($/kW) = [BatteryPack ($/kWh) × Duration (h)] + BOS ($/kW)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where BOS (balance of system) covers the inverter, controls, and &lt;br&gt;
installation — costs that scale with power capacity, not energy capacity.&lt;/p&gt;

&lt;p&gt;For LFP at moderate scenario (2024 values from Cole, Ramasamy &amp;amp; Turan 2025, NREL/TP-6A40-93281):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# The correct model
&lt;/span&gt;&lt;span class="n"&gt;pack_cost_per_kwh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;241&lt;/span&gt;   &lt;span class="c1"&gt;# $/kWh — energy component
&lt;/span&gt;&lt;span class="n"&gt;bos_cost_per_kw&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;339&lt;/span&gt;   &lt;span class="c1"&gt;# $/kW  — power component
&lt;/span&gt;&lt;span class="n"&gt;duration_hours&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;4.0&lt;/span&gt;   &lt;span class="c1"&gt;# hours
&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_bess_capex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;power_kw&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;duration_h&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;energy_kwh&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;power_kw&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;duration_h&lt;/span&gt;
    &lt;span class="n"&gt;energy_cost&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;energy_kwh&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;pack_cost_per_kwh&lt;/span&gt;
    &lt;span class="n"&gt;power_cost&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;power_kw&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;bos_cost_per_kw&lt;/span&gt;
    &lt;span class="n"&gt;total_cost&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;energy_cost&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;power_cost&lt;/span&gt;
    &lt;span class="n"&gt;cost_per_kwh&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;total_cost&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;energy_kwh&lt;/span&gt;  &lt;span class="c1"&gt;# effective $/kWh
&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;energy_kwh&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;     &lt;span class="n"&gt;energy_kwh&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;energy_cost_usd&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;energy_cost&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;power_cost_usd&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;power_cost&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;total_cost_usd&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;total_cost&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;effective_per_kwh&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cost_per_kwh&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# varies with duration!
&lt;/span&gt;    &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# 500 kW, 4-hour system
&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculate_bess_capex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;4.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# total: $920,500  |  effective: $460/kWh
&lt;/span&gt;
&lt;span class="c1"&gt;# Same energy, 2-hour system (1000 kW inverter)
&lt;/span&gt;&lt;span class="n"&gt;result2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculate_bess_capex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;2.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
&lt;span class="c1"&gt;# total: $1,143,000  |  effective: $571/kWh
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same total energy stored. 24% cost difference. That's the error you make with flat $/kWh.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why duration changes the effective cost per kWh
&lt;/h2&gt;

&lt;p&gt;Here's the relationship visualized:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsne28ikdpg15o4sf87w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsne28ikdpg15o4sf87w.png" alt="Effect of Discharge Duration on LFP Battery Energy Costs" width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The longer the discharge duration, the lower the effective $/kWh — because you're spreading the fixed power costs (BOS) over more stored energy. This is why 6-8 hour systems often pencil out better for large industrial loads even though the upfront cost is higher.&lt;/p&gt;

&lt;h2&gt;
  
  
  Round-trip efficiency convention — another source of errors
&lt;/h2&gt;

&lt;p&gt;One more thing that trips people up: manufacturer specs often quote DC-DC round-trip efficiency (0.92–0.95 for LFP). But commercial buildings are billed on AC metered output, so you need the AC-AC figure.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# DC-DC (what manufacturers advertise)
&lt;/span&gt;&lt;span class="n"&gt;rte_dc_dc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.93&lt;/span&gt;

&lt;span class="c1"&gt;# AC-AC (what actually matters for your electricity bill)
&lt;/span&gt;&lt;span class="n"&gt;rte_ac_ac&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.85&lt;/span&gt;  &lt;span class="c1"&gt;# LFP — from NREL ATB 2024b and PNNL-33283
&lt;/span&gt;
&lt;span class="c1"&gt;# The difference matters for savings calculations
&lt;/span&gt;&lt;span class="n"&gt;annual_cycles&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;365&lt;/span&gt;
&lt;span class="n"&gt;usable_kwh&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;

&lt;span class="n"&gt;dc_dc_throughput&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;annual_cycles&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;usable_kwh&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;rte_dc_dc&lt;/span&gt;  &lt;span class="c1"&gt;# 136,380 kWh
&lt;/span&gt;&lt;span class="n"&gt;ac_ac_throughput&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;annual_cycles&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;usable_kwh&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;rte_ac_ac&lt;/span&gt;  &lt;span class="c1"&gt;# 124,100 kWh
&lt;/span&gt;
&lt;span class="c1"&gt;# At $0.18/kWh, that's a $2,207/year difference in projected savings
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;I wrapped all of this into a FastAPI service that also handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Load Duration Curve sizing (Neubauer &amp;amp; Simpson 2015, NREL/TP-5400-63162)&lt;/li&gt;
&lt;li&gt;LCOS calculation per PNNL-33283&lt;/li&gt;
&lt;li&gt;IRA 2022 §48E ITC stacking (base 30% + up to 20% in adders)&lt;/li&gt;
&lt;li&gt;Demand charge savings with state-level rates from OpenEI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every output includes the source equation and the paper it comes from. The API is live on RapidAPI if you want to try it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/bethelhash/solar-bess-sizing-api" rel="noopener noreferrer"&gt;GitHub repo&lt;/a&gt; | &lt;br&gt;
&lt;a href="https://rapidapi.com/bethelnedi/api/solar-bess-sizing-dispatch-optimization-api" rel="noopener noreferrer"&gt;RapidAPI&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Sources: Cole, Ramasamy &amp;amp; Turan (2025) NREL/TP-6A40-93281 · &lt;br&gt;
Mongird et al. (2022) PNNL-33283 · Neubauer &amp;amp; Simpson (2015) &lt;br&gt;
NREL/TP-5400-63162 · IRA 2022 §48E&lt;/em&gt;&lt;/p&gt;

</description>
      <category>solar</category>
      <category>python</category>
      <category>api</category>
      <category>fastapi</category>
    </item>
  </channel>
</rss>
