How to calculated values on header

How to calculated values on header :

$theorique = 100; //sql number

echo ’

Nombre de jours restant,#cspan,#cspan,".$theorique."-{#stat_total} ';

//stat_total result = 50

On the display :
100-50

Thx

{#stat_total} renders us number only on client side. You should calculate number of rows on server side using PHP function and pass it as header label.

Only my {#stat_total} change when i change value on my grid

Nombre de jours restant,#cspan,#cspan,100-{#stat_total}

I can’t do calcul with constant on header ?