An article containing the theoretical foundations related to the script can be found at:
Design of output transformers (RiK 1974/12)

In keeping with the declaration that I'm reproducing the content of a long-defunct Fonar website in this section, I'm posting, without any changes or modifications, a script that aids in the design of an output transformer for an amplifier operating in a push-pull (PP) configuration. This script, like others marked as "Retro Scripts," was created by modifying an applet I wrote back in the 1990s and added to the Fonar website in the early 21st century. From the perspective of modern JavaScript language descriptions, it contains many unused elements. The script may be of interest to someone who designs output transformers, programs in JavaScript, and is curious to see what a script written a quarter of a century ago looks like.

Please note that due to the program's age, you may experience problems running it in some browsers. Fortunately, I don't experience any. I primarily use Google Chrome. I invite you to view, try, and analyze the source code:

Designing a PP amplifier output transformer