Calculator for sx