<%
   form = local_assigns[:form]
   errors = form&.errors
%>

<h2 id="calculator">Estimate what you’d get after tax</h2>

<%= render 'calculators/error_summary', messages: errors&.messages if form&.invalid? %>

<form action="/take-whole-pot/estimate#calculator" method="get">
  <%= render 'calculators/form_input_currency',
             field: :income,
             value: form&.income,
             label: 'What’s your yearly income?',
             hint: 'Include money you get from work, benefits, savings and State Pension payments',
             error_messages: errors&.get(:income) %>

  <%= render 'calculators/form_input_currency',
             field: :pot,
             value: form&.pot,
             label: 'How much is in your pot?',
             error_messages: errors&.get(:pot) %>

  <%= render 'calculators/form_input_submit' %>
</form>

<% if form %>
  <script>
    window.dataLayer = window.dataLayer || [];
    dataLayer.push({
      'event': 'CalculatorEstimate',
      'valid': <%= form.valid? %>
      <% if form.valid? %>
      , 'pot': <%= form.pot.to_i %>
      , 'income': <%= form.income.to_i %>
      <% end %>
    });
  </script>
<% end %>

<%
   form = local_assigns[:form]
   errors = form&.errors
%>

<h2 id="calculator">Estimate what you’d get after tax</h2>

<%= render 'calculators/error_summary', messages: errors&.messages if form&.invalid? %>

<form action="/take-whole-pot/estimate#calculator" method="get">
  <%= render 'calculators/form_input_currency',
             field: :income,
             value: form&.income,
             label: 'What is your yearly income?',
             hint: 'Include money you get from work, benefits, savings and State Pension payments',
             error_messages: errors&.get(:income) %>

  <%= render 'calculators/form_input_currency',
             field: :pot,
             value: form&.pot,
             label: 'How much is in your pot?',
             error_messages: errors&.get(:pot) %>

  <%= render 'calculators/form_input_submit' %>
</form>

<% if form %>
  <script>
    window.dataLayer = window.dataLayer || [];
    dataLayer.push({
      'event': 'CalculatorEstimate',
      'valid': <%= form.valid? %>
      <% if form.valid? %>
      , 'pot': <%= form.pot.to_i %>
      , 'income': <%= form.income.to_i %>
      <% end %>
    });
  </script>
<% end %>

Update whole pot calculator copy
Update whole pot calculator copy

Removed contraction 'What's' and changed to 'What is' to make clearer for people with low literacy.