That worked, however for the full thing is does not: <td>Morale</td> <td><input style="width: 30px" type="text" name="attr_Morale_Base" value="[[ceil({@{Tactical_Command_total, 0}kh1/20)]]" disabled/></td> <td><input style="width: 30px" type="text" name="attr_Morale_Change" value="0"></td> <td><input style="width: 30px" type="text" name="attr_Morale_Total" value="@{Morale_Base}+@{Moral_Change}" disabled/></td></tr> In the section for Morale_Total, it is not calculating it, it is giving me what I filled in s base... "[[{(@{Movement_Base}+@{Movement_Change}-@{hp2}-@{hp7}-@{hp14}),0}kh1]]" And this one is killing me, I need it to add all the values up, and then compare it to the 0