Karthik P, the usual approach is to design the flange, then recursively increase the design pressure, holding all else constant, until the flange fails in some way. The highest pressure not resulting in failure is the MAWP. Best done by computer methods, even a spreadsheet.
Regards,
Mike
The problem with sloppy work is that the supply FAR EXCEEDS the demand