Extension Icon

Leave Time Calculator

Calculate your leave time based on start time and break duration
Overview

Leave Time Calculator

A Raycast extension that calculates your leaving time and remaining work hours by simply entering your arrival time.

✨ Features

  • 📅 Save Today's Arrival Time - Set it once and see your leaving time all day long
  • ⏰ Real-time Remaining Time Display - Dynamically shows "○ hours ○ minutes left" in the command list
  • ⏱️ Overtime Display - After the scheduled leave time, shows "○ hours ○ minutes overtime"
  • ✏️ Custom Time Input - Enter any time like 9:21 in the search bar
  • 🌙 Night Shift Support - Correctly calculates shifts that span across midnight

📸 Screenshots

Image Image

🚀 How to Use

  1. Open the extension in Raycast
  2. Select arrival time from the list (or enter a custom time)
  3. Your leaving time and remaining hours will be displayed in "Today's Schedule" at the top
  4. Automatically resets when the date changes

⚙️ Settings

SettingDescriptionDefault
Default Work HoursWork hours per day8 hours
Default Break MinutesBreak time60 minutes

🛠️ Development

# Install dependencies
npm install

# Development mode
npm run dev

# Run tests
npm run test

# Lint
npm run lint

# Lint & auto-fix
npm run fix-lint

# Build
npm run build

📄 License

MIT