Great work Kiril, the js functionality is working well. Additional , research on ARIA live regions - Assistive technologies will announce dynamic changes in the content of a live region. Including an aria-live attribute or a specialized live region role (such as role="alert") on the element you want to announce changes to works as long as you add the attribute before the changes occur — either in the original markup, or dynamically using JavaScript. [source MDN - ARIA live regions] (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions). When changes has occurred due to the calculations.
Well done and happy coding
Marked as helpful
@qirele
Posted
@ChamuMutezva good catch, make the web accessible for everyone!