Calculate the number of folds to reach the moon