๋ฏธ๊ตญ ๋ฐฐ๋‹น์ฃผ ์‹ฌํ”Œ๊ณ„์‚ฐ๊ธฐ

์„œ๋ก 

์ €๋ฒˆ ์ผ์ฃผ์ผ ๋™์•ˆ์—๋Š” ์‹ค์ˆ˜ ๋กœ ๋‚ ๋ ค๋จน์€

GitHub ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ด๋ฆฌ๊ณ 

์ด์ œ Hexo ๋ธ”๋กœ๊ทธ ๊ฐ€ ์–ด๋А์ •๋„ ์™„์„ฑํ•ด์„œ

์ด์ œ์„œ์•ผ ์ฒซ ๊ฒŒ์‹œ๊ธ€์„ ์ž‘์„ฑํ•ด๋ณธ๋‹ค.

๋ณธ๋ก 

์‹ฌํ”Œ๊ณ„์‚ฐ๊ธฐ
์‹ฌํ”Œ๊ณ„์‚ฐ๊ธฐ(JP)

๋‚˜๋Š” ๊ฐ€๊นŒ์šด ๋ฏธ๋ž˜ ๋ฏธ๊ตญ ๋ฐฐ๋‹น์ฃผ ์ฃผ์‹์„
๊ณ„ํš ํ•˜๊ณ  ์žˆ๋‹ค.

๊ทธ๋ž˜์„œ ์˜ˆ์ƒ๊ธˆ์•ก ๋“ฑ๋“ฑ ๊ณ„์‚ฐ์„ ํ• ๋ ค๊ณ 
๊ณ„์‚ฐ๊ธฐ๋ฅผ ์ฐพ๊ณ  ์žˆ์—ˆ๋Š”๋ฐ

๋Œ€๋ถ€๋ถ„ ๋„ˆ๋ฌด ๋ณต์žกํ•˜๊ณ  ๋‚ด๊ฐ€ ์›ํ•˜๋Š” ๊ณ„์‚ฐ๊ธฐ๊ฐ€

์—†์–ด์„œ ๊ทธ๋ƒฅ ๋‚ด๊ฐ€ ์ฝ”๋”ฉ์œผ๋กœ ๋งŒ๋“ค์–ด ๋ณด๊ธฐ๋กœ ํ–ˆ๋‹ค.

(๋‚˜์˜ ์›๋ž˜ ์ •์ฒด์„ฑ์€ ์ฝ”๋”ฉ ์ด๋ž‘ ํ™”์ดํŠธํ•ด์ปค์ด๋‹ค.)

(์—ฌํ…Œ๊นŒ์ง€ ๋‚˜๋Š” ์ทจ๋ฏธ๋กœ ๊ทธ๋ฆผ์„ ๊ทธ๋ฆฐ๋‹ค.)



์ผ๋”ด ๋‹จ์ˆœํžˆ ๊ณ„์‚ฐ์‹์€ ์ด๋ ‡๋‹ค.

-๋ชจ์•„๋ณผ ์ฃผ ร— ์˜ˆ์ƒ ๋ฐฐ๋‹น๊ธˆ

-1์ฃผ ๊ฐ€๊ฒฉ ร— ๊ตฌ์ž…ํ•œ์ฃผ



์ด๋Ÿฐ ํ˜•์‹์˜ ๊ณ„์‚ฐ๊ธฐ๊ฐ€ ๋‚˜์—๊ฒŒ ํ•„์š”ํ–ˆ๋‹ค

์ž ์ด์ œ ๋ฐ”๋กœ ์•„๋ž˜ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ฝ”๋“œ๋ฅผ ๋ณด์ž

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script>
function calculate() {
const num = parseFloat(document.getElementById('num').value);
const num1 = parseFloat(document.getElementById('num1').value);
const num2 = parseFloat(document.getElementById('num2').value);
const num3 = parseFloat(document.getElementById('num3').value);

if (isNaN(num) || isNaN(num1) || isNaN(num2) || isNaN(num3)) {
document.getElementById('output').innerHTML = "โš ๏ธ ๋ชจ๋“  ์ž…๋ ฅ๋ž€์„ ์ฑ„์›Œ์ฃผ์„ธ์š”!";
return;
}

const YB = num * num1;
const afterTax = YB * (1 - 0.154);
const ZG = num2 * num3;

document.getElementById('output').innerHTML =
`์ด ์˜ˆ์ƒ ๋ฐฐ๋‹น๊ธˆ: <strong>${YB.toLocaleString()}์›</strong><br>` +
`์„ธํ›„ ์˜ˆ์ƒ ๋ฐฐ๋‹น๊ธˆ (15.4% ๊ณต์ œ): <strong>${afterTax.toLocaleString()}์›</strong><br>` +
`์ด ์˜ˆ์ƒ ๊ตฌ์ž…๊ฐ€๊ฒฉ: <strong>${ZG.toLocaleString()}์›</strong>`;
}
</script>

์œ„ ์ฝ”๋“œ๋Š” ๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๋‹ค.
์ˆœ์ˆ˜ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ฝ”๋“œ๋กœ ์ฝ”๋”ฉ์„ ํ•ด๋ดค๋‹ค.

์•„์ฃผ ์˜ค๋ž˜์ „์— ์ง์—…ํ›ˆ๋ จํ•™๊ต ๋•Œ ๋ฐฐ์›Œ๋‘” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๊ฐ€

๋น›์„ ๋ฐœํ•˜๋Š” ๋“ฏํ•˜๋‹ค. ์•„๋ฌดํŠผ ๊ฒฐ๊ณผ๋ฌผ์€ ์•„๋ž˜ ์‚ฌ์ง„.1

์‚ฌ์ง„.1

์ƒ๊ฐ๋ณด๋‹ค ๊ฒฐ๊ณผ๋ฌผ์€ ๋งค์šฐ ๋งŒ์กฑํ•œ๋‹ค .

์ด์ œ ๊ฐ€๊นŒ์šด ๋ฏธ๋ž˜ ์— ๋ฏธ๊ตญ ๋ฐฐ๋‹น์ฃผ ์ฃผ์‹ ์‹œ์ž‘ํ•  ๋•Œ



ํฐ ๋„์›€์ด ๋˜์ง€ ์‹ถ๋‹ค.

๋งˆ์ง€๋ง‰ ์•„๋ž˜ ์ฝ”๋“œ๋Š” ์ „์ฒด ์ฝ”๋“œ์ด๋‹ค.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>์‹ฌํ”Œ ๋ฐฐ๋‹น์ฃผ ๊ณ„์‚ฐ๊ธฐ(์›ํ™”)</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
background-color: #f4f4f4;
padding: 2em;
max-width: 600px;
margin: auto;
}
h1 {
color: #2c3e50;
font-size: 1.8em;
}
label, input {
display: block;
margin-bottom: 1em;
font-size: 1rem;
width: 100%;
}
input {
padding: 0.5em;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid #ccc;
}
button {
width: 100%;
padding: 0.8em;
font-size: 1rem;
border: none;
background-color: #3498db;
color: white;
border-radius: 6px;
cursor: pointer;
margin-top: 1em;
}
button:hover {
background-color: #2980b9;
}
.result {
margin-top: 2em;
font-weight: bold;
word-break: keep-all;
}

.wrap-container {
margin-top: 2em;
text-align: center;
}
.home-image {
width: 100%;
max-width: 300px;
height: auto;
}

footer {
text-align: center;
margin-top: 3em;
font-size: 0.9em;
color: #777;
}

@media (max-width: 480px) {
body {
padding: 1em;
}
h1 {
font-size: 1.4em;
}
button {
font-size: 0.9em;
}
}
</style>
</head>
<body>

<!--<h1> </h1>-->
<label>
<br><font size=6 style="font-weight:900;">๐Ÿ’น ์‹ฌํ”Œ ๋ฐฐ๋‹น์ฃผ ๊ณ„์‚ฐ๊ธฐ(์›ํ™”)</font> <a style="color: #33d45b">ver 0.0.5</a></br>
</label>

<label>
<a style="color: #37b7fe">๋ชจ์•„๋ณผ ์ฃผ:</a>
<input type="number" id="num" placeholder="์˜ˆ: 22691">
</label>

<label>
<a style="color: #37b7fe">์˜ˆ์ƒ ๋ฐฐ๋‹น๋ฝ:</a>
<input type="number" id="num1" placeholder="์˜ˆ: 1158">
</label>

<label>
<a style="color: #37b7fe">1์ฃผ๋‹น ๊ฐ€๊ฒฉ:</a>
<input type="number" id="num2" placeholder="ํ˜„์žฌ 1์ฃผ๋‹น ๊ฐ€๊ฒฉ">
</label>

<label>
<a style="color: #37b7fe">๊ตฌ์ž…ํ•œ ์ฃผ:</a>
<input type="number" id="num3" placeholder="๊ตฌ์ž…ํ•  ์ฃผ์‹ ์ˆ˜">
</label>

<button onclick="calculate()">๊ณ„์‚ฐํ•˜๊ธฐ</button>

<div class="result" id="output"></div>

<script>
function calculate() {
const num = parseFloat(document.getElementById('num').value);
const num1 = parseFloat(document.getElementById('num1').value);
const num2 = parseFloat(document.getElementById('num2').value);
const num3 = parseFloat(document.getElementById('num3').value);

if (isNaN(num) || isNaN(num1) || isNaN(num2) || isNaN(num3)) {
document.getElementById('output').innerHTML = "โš ๏ธ ๋ชจ๋“  ์ž…๋ ฅ๋ž€์„ ์ฑ„์›Œ์ฃผ์„ธ์š”!";
return;
}

const YB = num * num1;
const afterTax = YB * (1 - 0.154);
const ZG = num2 * num3;

document.getElementById('output').innerHTML =
`์ด ์˜ˆ์ƒ ๋ฐฐ๋‹น๊ธˆ: <strong>${YB.toLocaleString()}์›</strong><br>` +
`์„ธํ›„ ์˜ˆ์ƒ ๋ฐฐ๋‹น๊ธˆ (15.4% ๊ณต์ œ): <strong>${afterTax.toLocaleString()}์›</strong><br>` +
`์ด ์˜ˆ์ƒ ๊ตฌ์ž…๊ฐ€๊ฒฉ: <strong>${ZG.toLocaleString()}์›</strong>`;
}
</script>

<div class="wrap-container">
<div class="home-container">

</div>
</div>
<script width="5px" height="5px" type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="Luna0x03" data-color="#BD5FFF" data-emoji="" data-font="Cookie" data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#ffffff" data-coffee-color="#FFDD00" ></script>
</body>

by. <a href="https://github.com/luna00110010">luna00110010</a>

<footer>
<small>Copyright &copy; Kurai Luna(Luna0x03)</small>
</footer>
</html>


ํœด, ๋งŽ์€ ๋ป˜์ง“์ด์˜€๋‹คใ…กใ… ;;
์•„๋ฌดํŠผ ์•„๋ž˜ ์‚ฌ์ง„.2 ์ฒ˜๋Ÿผ ์ผ๋ณธ ๋ฒ„์ „๋„ ๋ณด์—ฌ์ฃผ๊ณ  ์ด๋งŒ ๋๋งˆ์นœ๋‹ค.

์‚ฌ์ง„.2

P.s.
์ผ๋ณธ๋ฒ„์ „๋„ ๋งŒ๋“ค์–ด๋ณด๋‹ˆ๊นŒ

์ผ๋ณธ์—์„œ ์ด ๋ฐฐ๋‹น๊ธˆ ์„ธ๊ธˆ์ด 28.28% ์‚ฌ์‹ค์—

๋†€๋ผ์› ๋‹ค, ๊ฐœ์ธ์ ์œผ๋กœ ์ผ๋ณธ์˜ ๊ธˆ์œต์— ์žˆ์–ด์„œ๋Š”

๋งŽ์ด ์•„์‰ฌ์šด ๋ถ€๋ถ„์ด๋‹ค.