---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/sunrise-sunset/use-cases/calculate-daylight-hours/claude
---
# How to Calculate Daylight Hours with Claude

Claude brings analytical precision to daylight planning by calculating golden hour windows, comparing seasonal variations across locations, and reasoning through how sunrise and sunset times affect your specific use case. Whether you are optimizing a photo shoot schedule, timing an outdoor event for the best light, or estimating solar energy potential across seasons, Claude connects the raw astronomical data to practical decisions through step-by-step analysis that shows its work.

## Setup

claude mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: claude mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask Claude: "Get sunrise and sunset times using sunrise-sunset" with your location
3. Claude returns times and can calculate total daylight
4. Ask: "How does this compare to the summer solstice?"

## Example Prompt

```
How many hours of daylight does London get today versus the summer and winter solstices? Show me the comparison.
```

## Tips

- Ask Claude to compare daylight across multiple cities
- Track week-over-week changes as seasons shift
- Useful for SAD awareness and lifestyle planning
