Previous calculations have to be before this "if" statement