Grazie mille per la formula matematica, ma il nostro problema è come farla eseguire a php su dati estratti da un database.
Grazie ancora
Ciao