Your reasoning is generally correct, the base math is indeed
(charset_size**code_length) / guesses_per_second (where ** is exponentiation). For the sake of completeness (I see you already took most of this into account), there are some things one should factor in:
How fast is your web server? This would limit how fast they can check, at least currently.