instead of me writing a big spill, click here instead. There is some good information and will get you in the right direction. You also have to take other things into account, that affect power, like temps on the day, dyno etc.
There are gains to be had by going to a 4" of course and many equations to play with to calculate, as well as pros/cons of going bigger like, it will be louder, likely hang lower etc etc