DCI reporter will do all this stuff for you, except for the round # calculations. You just want the smallest power of 2 that's greater than the number of people, so 30 people means 32 (2^5) is the smallest, thus, 5 rounds. Basically, what jp said.
And if you organise a pure swiss tourney (which I prefer), it's:
log
2(#players) + 2
So, for Dülmen tournies, it should be 9 rounds since there usually are between 65 and 127 players.