Divsor formula not working