Best size for modal

I am designing a modal for enterprise application. What is the optimal size for modal width and height. I need to design one for small medium and large..

Is there a resource or user research done around optimal sizes?