Calculate business expenses, personal expenses, how much of your time you are actually able to bill. Nice to play around with the variables and see how that affects the hourly rate.
Someone mentioned this tool in a LinkedIn discussion about how to get paid as a freelancer. I don't spend enough time invoicing right now to justify this, but the tool looks promising if I ever get to a point where I am spending multiple hours doing paperwork.