HttpClient returns an Observable for a request. Supply its provider at bootstrap, subscribe to the response and derive the displayed result from returned records. Requests in this workspace use local fixture responses, so no external account or network service is involved.
Read the supplied records before you change the component. The preview runs your code, so use the controls and inspect the result after more than one action. Some records have a zero value or share a name. Those are deliberate cases, and the hidden records change the values again. Keep the calculation tied to its inputs rather than typing the first expected result into the template. The check accepts a different implementation when it preserves the same visible behavior.
Keep the example's element IDs, classes and control labels so checks can locate the output; your Angular implementation can differ.
Trace the component members into the template, then try the relevant control in the preview.