Calcuate size of message box.