what is the formula to calculate adjusted basis?