Calculating amount of water displaced by solid sphere