I dunno if there is a formula. I usually just work those out using intuition.
New value of the firm = Value of acquirer + value of acquieree + synergy
Then figure out the new share balance if being paid in shares (or subtract out the cash paid from the total new value if being paid in cash). Divide new value of the firm by the new share value and you get the price/share. This should get you 90% of the way. Then just figure out the rest. I feel these questions can be pieced together if you just think it through.