The Science behind the number and order of days of the week

The order of days in a week are defined according to the speed of the planets/astral bodies with reference to the movement of the Earth. There is a relationship at play. Only those grahas are taken whose vibration/light is within range of affecting