This has been discussed before, try searching the archives with something like "AccountingMax vs RelayBandwidthRate".
The technique you'll want to use really depends on whether you want a faster relay for part of the month, or a stable (but slower) relay throughout the month. Teor goes into more detail in that post.