This subject is discussed here: http://agileconsortium.blogspot.com/2008/03/whats-scrummaster-worth.html
Here is the XLS file to revise the calculation with different assumptions:
What is a ScrumMaster worth ver3.xls