HTML+JS is "turing complete" so in a sense you can make everything in HTML that you could make in Flash. In practice, I think the authoring experience has been lost. There is still Adobe Animate (which is the renamed Flash application), but I think you can not export to a fully interactive HTML application - only to static videos or simple HTML (like interactive ads). Maybe it is now possible, but I haven't seen much…
The question is what you can do, not what can you write a function to calculate.