Well, apart from the fact that there are websites that provide a tool, you can actually do it yourself by comparing the potential selling price of the coins you mine to the cost you incur by using electricity and buying the hardware.
why asking fool questions? there is a site where everything has long been calculated and updated in real time. https://whattomine.com/
you go to the site you choose the parameters that you have and get the result. everything is very simple and fast.
What's the point in accusing someone of asking a fool question? It's your attitude that makes people shy away from crypto. Provide support or stay silent. That person politely asked a usual question.