급여2026년 기준

연차 발생일수 계산기

입사일과 기준일로 근로기준법 제60조의 연차 발생일수와 잔여 연차를 계산합니다.

입력값은 브라우저에서만 계산되며 서버로 전송되지 않습니다.

2026년 기준 · 근로기준법 제60조

오늘 기준으로 계산하려면 오늘 날짜를 그대로 두세요.

일

80% 미만이면 월 1일 기준으로 단순 계산합니다.

발생 연차

—

— · 다음 입사기념일 —

  • 입사일—
  • 기준일—
  • 근속기간—
  • 발생 연차—
  • 사용0.0일
  • 잔여 연차—

근로기준법 제60조를 기준으로 한 참고 계산입니다. 1년 미만은 1개월 개근마다 1일(최대 11일), 1년 이상 80% 이상 출근은 15일, 3년 이상은 2년마다 1일을 가산해 최대 25일로 계산합니다. 입사일 기준이며 회계연도 기준·출근율 산정·휴직·육아휴직 등은 회사 규정과 노무 검토를 확인하세요.

최근 입력0/8

입력이 3초간 멈추면 이 브라우저에 자동 저장됩니다.

입력이 3초간 멈추면 이 브라우저에만 저장됩니다. 항목을 클릭하면 그때의 입력값으로 복원됩니다.

이 도구는 이렇게 계산합니다

결과를 믿기 전에 계산 원리와 가정을 확인하세요.

  1. 1년 미만은 1개월 개근마다 1일, 최대 11일로 계산합니다.
  2. 1년 이상 80% 이상 출근은 15일, 3년 이상은 최초 1년 초과 근속 2년마다 1일을 가산해 최대 25일로 계산합니다.
  3. 입사일 기준 계산입니다. 회계연도 기준, 출근율 산정, 휴직·육아휴직 등은 회사 규정과 노무 검토가 필요합니다.

자주 묻는 질문

1년 미만 근로자는 연차가 어떻게 발생하나요?

1개월 개근 시 1일의 유급휴가가 발생하며, 입사 후 1년이 되기 전까지 최대 11일입니다. 이 계산기는 입사일부터 기준일까지의 개월 수로 단순 계산합니다.

3년 이상 근속하면 연차가 늘어나나요?

네. 1년간 80% 이상 출근한 근로자에게 15일을 주고, 3년 이상 근속자는 최초 1년을 초과하는 근속 2년마다 1일을 가산합니다. 총 연차는 25일을 넘지 않습니다.

회계연도 기준 연차도 계산할 수 있나요?

이 계산기는 입사일 기준입니다. 회계연도 기준으로 부여하는 회사는 입사 연도 비례 지급, 잔여 연차 이월·소멸 규정이 다를 수 있어 회사 인사 기준과 노무 검토가 필요합니다.

제작 코드

이 페이지에서 실제로 사용하는 Vue 3 컴포넌트입니다. 계산식과 화면 구성을 그대로 확인하고 복사할 수 있습니다.

도구 전체 코드 보기
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue'
import { fmt, parseDate, todayISO } from '~/utils/calc'
import CalculatorHistory from '~/components/calculators/CalculatorHistory.vue'

const BASE_YEAR = 2026

const hireDate = ref('')
const baseDate = ref('')
const usedDays = ref(0)
const attendance80 = ref(true)

function toISO(date: Date) {
  return date.toISOString().slice(0, 10)
}

onMounted(() => {
  const today = parseDate(todayISO())
  if (!today) return
  baseDate.value = toISO(today)
  const past = new Date(today)
  past.setUTCFullYear(past.getUTCFullYear() - 3)
  hireDate.value = toISO(past)
})

const hire = computed(() => parseDate(hireDate.value))
const base = computed(() => parseDate(baseDate.value))

const fullMonths = computed(() => {
  if (!hire.value || !base.value) return null
  let months = (base.value.getUTCFullYear() - hire.value.getUTCFullYear()) * 12
    + (base.value.getUTCMonth() - hire.value.getUTCMonth())
  if (base.value.getUTCDate() < hire.value.getUTCDate()) months -= 1
  return Math.max(0, months)
})

const fullYears = computed(() => (fullMonths.value === null ? null : Math.floor(fullMonths.value / 12)))

const totalDays = computed(() => {
  if (fullMonths.value === null) return null
  if (fullMonths.value < 12) return Math.min(11, fullMonths.value)
  if (!attendance80.value) {
    const monthInYear = fullMonths.value % 12
    return Math.min(12, monthInYear === 0 ? 12 : monthInYear)
  }
  const years = Math.floor(fullMonths.value / 12)
  return Math.min(25, 15 + Math.floor((years - 1) / 2))
})

const used = computed(() => Math.max(0, Number(usedDays.value) || 0))
const remaining = computed(() => (totalDays.value === null ? null : Math.max(0, totalDays.value - used.value)))
const serviceLabel = computed(() => {
  if (fullMonths.value === null) return '—'
  return `${Math.floor(fullMonths.value / 12)}년 ${fullMonths.value % 12}개월`
})

const nextAnniversary = computed(() => {
  if (!hire.value || fullMonths.value === null) return null
  const next = new Date(Date.UTC(
    hire.value.getUTCFullYear() + Math.floor(fullMonths.value / 12) + 1,
    hire.value.getUTCMonth(),
    hire.value.getUTCDate(),
  ))
  return toISO(next)
})

const historySnapshot = computed(() => ({
  hireDate: hireDate.value,
  baseDate: baseDate.value,
  usedDays: usedDays.value,
  attendance80: attendance80.value,
}))
const historyLabel = computed(() => `입사 ${hireDate.value || '—'} · 기준 ${baseDate.value || '—'} · 사용 ${fmt(used.value, 0)}일`)
function restoreHistory(data: Record<string, unknown>) {
  hireDate.value = String(data.hireDate ?? '')
  baseDate.value = String(data.baseDate ?? '')
  usedDays.value = Number(data.usedDays) || 0
  attendance80.value = data.attendance80 !== false
}
</script>

<template>
  <div class="calc-card">
    <div class="calc-base-year">{{ BASE_YEAR }}년 기준 · 근로기준법 제60조</div>

    <div class="calc-grid">
      <div class="calc-form">
        <div class="calc-field">
          <label for="annual-hire">입사일</label>
          <input id="annual-hire" v-model="hireDate" class="calc-input" type="date" />
        </div>

        <div class="calc-field">
          <label for="annual-base">기준일</label>
          <input id="annual-base" v-model="baseDate" class="calc-input" type="date" />
          <p class="calc-hint">오늘 기준으로 계산하려면 오늘 날짜를 그대로 두세요.</p>
        </div>

        <div class="calc-field">
          <label for="annual-used">이미 사용한 연차</label>
          <div class="calc-inline">
            <input id="annual-used" v-model.number="usedDays" class="calc-input" type="number" min="0" step="0.5" inputmode="decimal" />
            <span class="calc-unit">일</span>
          </div>
        </div>

        <div class="calc-field">
          <label for="annual-attendance">
            <input id="annual-attendance" v-model="attendance80" type="checkbox" />
            최근 1년 출근율 80% 이상
          </label>
          <p class="calc-hint">80% 미만이면 월 1일 기준으로 단순 계산합니다.</p>
        </div>
      </div>

      <div class="calc-result" aria-live="polite">
        <p class="calc-result-label">발생 연차</p>
        <p class="calc-result-hero">{{ totalDays === null ? '—' : `${fmt(totalDays, 0)}일` }}</p>
        <p class="calc-result-sub">{{ serviceLabel }} · 다음 입사기념일 {{ nextAnniversary ?? '—' }}</p>
        <ul class="calc-result-list">
          <li class="calc-result-row"><span>입사일</span><strong>{{ hireDate || '—' }}</strong></li>
          <li class="calc-result-row"><span>기준일</span><strong>{{ baseDate || '—' }}</strong></li>
          <li class="calc-result-row"><span>근속기간</span><strong>{{ serviceLabel }}</strong></li>
          <li class="calc-result-row"><span>발생 연차</span><strong>{{ totalDays === null ? '—' : `${fmt(totalDays, 0)}일` }}</strong></li>
          <li class="calc-result-row"><span>사용</span><strong>{{ fmt(used, 1) }}일</strong></li>
          <li class="calc-result-row total"><span>잔여 연차</span><strong>{{ remaining === null ? '—' : `${fmt(remaining, 1)}일` }}</strong></li>
        </ul>
        <p v-if="!attendance80" class="calc-warning">
          출근율 80% 미만은 월 1일 기준으로 단순 계산했습니다. 1년 이상 근속자의 정확한 산정은 노무 검토가 필요합니다.
        </p>
      </div>
    </div>

    <p class="calc-note">
      근로기준법 제60조를 기준으로 한 참고 계산입니다. 1년 미만은 1개월 개근마다 1일(최대 11일),
      1년 이상 80% 이상 출근은 15일, 3년 이상은 2년마다 1일을 가산해 최대 25일로 계산합니다.
      입사일 기준이며 회계연도 기준·출근율 산정·휴직·육아휴직 등은 회사 규정과 노무 검토를 확인하세요.
    </p>
  </div>

  <CalculatorHistory tool="annual-leave" :snapshot="historySnapshot" :label="historyLabel" @restore="restoreHistory" />
</template>
공통 입력 기록 컴포넌트 보기
<script setup lang="ts">
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'

interface HistoryEntry {
  id: string
  at: number
  label: string
  data: Record<string, unknown>
}

const props = defineProps<{
  tool: string
  snapshot: Record<string, unknown>
  label: string
}>()

const emit = defineEmits<{ restore: [data: Record<string, unknown>] }>()

const MAX_ENTRIES = 8
const SAVE_DELAY = 3000

const entries = ref<HistoryEntry[]>([])
const ready = ref(false)
const restoredId = ref('')
const storageKey = computed(() => `euninfo.calc-history.v1:${props.tool}`)
let saveTimer: ReturnType<typeof setTimeout> | undefined
let initialTimer: ReturnType<typeof setTimeout> | undefined
let initialSnapshot = ''

onMounted(() => {
  load()
  ready.value = true
  // 부모의 onMounted 기본값 주입(날짜 등) 뒤에 초기 상태를 캡처한다.
  initialTimer = setTimeout(() => {
    initialSnapshot = JSON.stringify(props.snapshot)
  }, 0)
})

onBeforeUnmount(() => {
  if (saveTimer) clearTimeout(saveTimer)
  if (initialTimer) clearTimeout(initialTimer)
})

watch(
  () => props.snapshot,
  () => {
    if (!ready.value) return
    if (saveTimer) clearTimeout(saveTimer)
    saveTimer = setTimeout(save, SAVE_DELAY)
  },
  { deep: true },
)

function load() {
  try {
    const raw = localStorage.getItem(storageKey.value)
    if (!raw) return
    const parsed: unknown = JSON.parse(raw)
    if (!Array.isArray(parsed)) return
    entries.value = parsed
      .filter((item): item is HistoryEntry => {
        if (!item || typeof item !== 'object') return false
        const entry = item as Partial<HistoryEntry>
        return typeof entry.id === 'string' && typeof entry.at === 'number' && typeof entry.label === 'string' && !!entry.data && typeof entry.data === 'object'
      })
      .slice(0, MAX_ENTRIES)
  } catch {
    entries.value = []
  }
}

function persist() {
  try {
    localStorage.setItem(storageKey.value, JSON.stringify(entries.value))
  } catch {
    // 저장 공간이 없거나 브라우저가 막은 경우 조용히 무시한다.
  }
}

function save() {
  const data = JSON.parse(JSON.stringify(props.snapshot)) as Record<string, unknown>
  const json = JSON.stringify(data)
  if (!entries.value.length && json === initialSnapshot) return

  const now = Date.now()
  const label = props.label.trim() || '최근 입력'
  const existing = entries.value.find((entry) => JSON.stringify(entry.data) === json)

  if (existing) {
    existing.at = now
    existing.label = label
    entries.value = [existing, ...entries.value.filter((entry) => entry.id !== existing.id)]
  } else {
    entries.value = [
      {
        id: `${now}-${Math.random().toString(36).slice(2, 8)}`,
        at: now,
        label,
        data,
      },
      ...entries.value,
    ].slice(0, MAX_ENTRIES)
  }
  persist()
}

function restore(entry: HistoryEntry) {
  emit('restore', JSON.parse(JSON.stringify(entry.data)) as Record<string, unknown>)
  restoredId.value = entry.id
  setTimeout(() => {
    if (restoredId.value === entry.id) restoredId.value = ''
  }, 1500)
}

function remove(id: string) {
  entries.value = entries.value.filter((entry) => entry.id !== id)
  persist()
}

function clear() {
  entries.value = []
  try {
    localStorage.removeItem(storageKey.value)
  } catch {
    // ignore
  }
}

function formatTime(at: number) {
  return new Intl.DateTimeFormat('ko-KR', {
    month: 'numeric',
    day: 'numeric',
    hour: '2-digit',
    minute: '2-digit',
  }).format(new Date(at))
}
</script>

<template>
  <section class="calc-history" aria-label="최근 입력 기록">
    <div class="calc-history-head">
      <strong>최근 입력</strong>
      <span class="calc-history-count">{{ entries.length }}/{{ MAX_ENTRIES }}</span>
      <button v-if="entries.length" type="button" class="calc-history-clear" @click="clear">전체 삭제</button>
    </div>

    <p v-if="!entries.length" class="calc-history-empty">
      입력이 3초간 멈추면 이 브라우저에 자동 저장됩니다.
    </p>
    <ul v-else class="calc-history-list">
      <li v-for="entry in entries" :key="entry.id" class="calc-history-row" :class="{ restored: restoredId === entry.id }">
        <button type="button" class="calc-history-load" :aria-label="`${entry.label} 입력값 불러오기`" @click="restore(entry)">
          <span class="calc-history-label">{{ entry.label }}</span>
          <time class="calc-history-time">{{ formatTime(entry.at) }}</time>
        </button>
        <button type="button" class="calc-history-remove" :aria-label="`${entry.label} 기록 삭제`" @click="remove(entry.id)">×</button>
      </li>
    </ul>

    <p class="calc-history-note">
      입력이 3초간 멈추면 이 브라우저에만 저장됩니다. 항목을 클릭하면 그때의 입력값으로 복원됩니다.
    </p>
  </section>
</template>

함께 쓰면 좋은 도구

이런 계산기가 필요하세요?

우리 업무에 맞는 계산기·관리 도구를 함께 만들 수 있습니다.

의뢰 등록하기