Fixed problem #3

I added the correct formula to the equation to calculate the proper
result. I didn’t understand the % sign as well as I needed. It was much
easier than I was making it.