This [attachment:onesamp.cls spreadsheet] computes the total sample size for a one sample t-test with given power.
This can also be done using this on-line calculator.