Make PHP calculations

Asked

Viewed 95 times

-3

I am with some doubt regarding some calculations, I made the following table using html and php, what I intend now is that the result calculates me percentages. That is, if the target is equal to the final evaluation the result will be 100%, on the other hand, if the final evaluation is lower than the target should give 0%, but there is still another situation, Final evaluation = Initial Evaluation but lower than the target should appear 75%. I hope you can understand what I want but at code level I’m not doing it, someone can help me?

inserir a descrição da imagem aqui

  • Post the code snippet you’ve already done so we can help.

  • You can do this only with chained if...

1 answer

0

To calculate percentage use rule of three.

If you want to know what percentage 4 represents of 8: (4 * 100) / 8

Browser other questions tagged

You are not signed in. Login or sign up in order to post.