the second question is what I need to know
You can use a certain type of calculator for that. There's one online. I'll try to find it for you,