Subtract function inside of container