Help changing the range for this time-based script please!

I was wondering if I could get some help with this light script, I was wanting to set the range from 17:50 to 6:20 but i know the “getminutesaftermidnight” probably prevents that… is there any way to change that? Any help is appreciated!

Window = script.Parent
TimeOfDay = game.Lighting.TimeOfDay

game:GetService(“Lighting”).LightingChanged:Connect(function()
if game:GetService(“Lighting”):GetMinutesAfterMidnight() >= 7 * 60 then
Window.BrickColor = BrickColor.new(“Smoky grey”)
Window.Material = Enum.Material.Glass
else
Window.BrickColor = BrickColor.new(“Linen”)
Window.Material = Enum.Material.Neon
end
end)