Apples have a shelf life and last around 1 week in the pantry or on the counter before the apples start to wrinkle and turn mushy.
So it's best to eat the apples before 1 week before they start to go bad.
If you want to keep the whole apples longer than a week you can refrigerate the apples and they will last for a month before they go bad.
After around a month the quality of the apples starts to degrade and they begin to go bad so eat them within a month and get more apples later.
Or turn the apples into applesauce and can the apple sauce and the homemade canned apple sauce will last for months.