Form calculation doesn't reflect the condition