Dynamic content in a static page

I have developed some calculators (in php) for my website and I need WordPress integration.
The calculators have a form and, after submission, the result is shown. The result depends on a query in the database. Is it possible to create “static pages” (at least static URLs) that provide to the user dynamic content?