Easier Way to Calculate the Value for a Number