calculate signs