C'è un errore non voluto sul type del button che è "submit" e non "calc", sorry
codice:
<button id="calc" type="submit">Calc</button>