My values aren't calculating correctly