It depends on what you want to spend your time on
Both spells create an effect in a sphere around you (15 feet radius with spirit guardians, 30 feet with twilight sanctuary). The sphere will remain centered around you and if you move up, it will affect less and less squares on the ground.
Technically, Thomas Markov's answer gives you a view of what happens if you would move up 15 feet. If you moved up 30 feet, then the bottom of the spirit guardian sphere would not even reach the ground any more, with 15 feet of vertical space to move under your sphere. The twilight sanctuary might still affect maybe 12-16 squares, as it just touching the ground (you could calculate how many exactly by drawing or plotting, then counting cubes more than 50% affected. This might be called the technically correct answer.
My point however is: if you calculate this exactly and correctly, this is going to waste a lot of time during your play session. You are going to sit around doing trigonometry and calculating volumes, to determine how many squares are exactly affected. An hour later you have it all worked out, and finally play continues. Depending on the height and the radius of the spell, this is going to be different every time. How many are affected if you fly at 10 feet? At 20 feet? You'll need templates for each.
The light is not worth the candle. A simpler approach is to keep the game flowing and let your DM make a rough judgement call. Some things may be obvious, like a 15 feet sphere not affecting the ground if you are 30 feet up. In other cases, just use the full radius if you are low five to ten feet, or shave off a row of squares around the border, if in medium height. It will be technically incorrect, but it will be a heck of a lot faster, and you can get on with the game.
Or you can use theatre of the mind narrative combat. In this case, there is a table for estimating how many targets are affected on page 249 DMG. For a sphere or circle it is radius / 5 targets, so a 15-foot spirit guardians would normally affect 3 targets, a 30-foot twilight sanctuary would affect 6. Substract the recommended 1d3, when you are up in the air midways.