Calculate sign