subsale purchase calculator