Good examples.

I definitely appreciate the math behind all of this; most of it can be done on the fly.

I would highly recommend working these out for yourself if you are rusty on the math skills.