Time = (currentTime - lastTime) / 1000;
            lastTime = currentTime;

            earthDays += deltaTime * 10; // 1 second = 10 Earth days
            fps = Math.round(1 / deltaTime);

            ctx.clearRect(0, 0, canvas.width, canvas.height);

            // Draw Sun
            ctx.beginPath();
            ctx.arc(canvas.width / 2, canvas.height / 2, 20, 0, Math.PI * 2);
            ctx.fillStyle = '#f2831f';
            ctx.fill();

            // Draw planets
            planets.forEach((plane