Skip to content

Instantly share code, notes, and snippets.

@wookay
Created May 31, 2021 02:01
Show Gist options
  • Save wookay/04e65570e4d55a992e05f2457c57a75a to your computer and use it in GitHub Desktop.
Save wookay/04e65570e4d55a992e05f2457c57a75a to your computer and use it in GitHub Desktop.
# 종합소득세 검산 https://www.facebook.com/seungjoon.choi/posts/10224347898020604
julia> 수입금액 = [250_000, 500_000, 750_000]
3-element Vector{Int64}:
250000
500000
750000
julia> 경비율 = [0.587, 0.617, 0.723] # 단순경비율 적용
3-element Vector{Float64}:
0.587
0.617
0.723
julia> 소득금액 = sum(수입금액 .* (1 .- 경비율))
502500.0
julia> 기납부세액 = sum(수입금액) * 0.033 # 원천징수
49500.0
julia> 세율 = 0.15
0.15
julia> 결정세액 = 소득금액 * 세율
75375.0
julia> 종합소득세_최종_납부세액 = 결정세액 - 기납부세액
25875.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment