I have two numbers, one of them is fixed ( 1700 ) and one will always be switching between 0 and 1700 , I want to calculate the percentage of that number that is alternating, for example, when the number is 1071 the percentage is equal to 63% , when it is 1700 it is equal to 100% !
$NumeroFixo = 1700
$Alternado = 1071
$Porcentagem = 63%
How can I do this?