Try:
{assign var="c" value="`$something+$constant`"}
But usually the point of template frameworks is to follow the mvc pattern. So, all the logic is executed in the controller. Or in the case of you some php script. The presentation should not have much logic (less logical code of the best representation). Therefore, any calculations should not be considered. In mvc, you will have some kind of logic, such as iterating or generating links (e.g. smarty plugins).
source share