https://web2.0calc.com/questions/this-should-be-easy-but-just-in-case
Thanks!
See my answer to the second one ( I think you already have an answer for the first )