@jjlmoya/utils-finance 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +64 -0
- package/src/category/i18n/en.ts +159 -0
- package/src/category/i18n/es.ts +159 -0
- package/src/category/i18n/fr.ts +159 -0
- package/src/category/index.ts +24 -0
- package/src/category/seo.astro +15 -0
- package/src/components/PreviewNavSidebar.astro +116 -0
- package/src/components/PreviewToolbar.astro +143 -0
- package/src/data.ts +11 -0
- package/src/env.d.ts +5 -0
- package/src/index.ts +32 -0
- package/src/layouts/PreviewLayout.astro +117 -0
- package/src/pages/[locale]/[slug].astro +146 -0
- package/src/pages/[locale].astro +251 -0
- package/src/pages/index.astro +4 -0
- package/src/tests/faq_count.test.ts +19 -0
- package/src/tests/locale_completeness.test.ts +39 -0
- package/src/tests/mocks/astro_mock.js +2 -0
- package/src/tests/no_h1_in_components.test.ts +48 -0
- package/src/tests/schemas_fulfillment.test.ts +23 -0
- package/src/tests/seo_length.test.ts +23 -0
- package/src/tests/title_quality.test.ts +55 -0
- package/src/tests/tool_validation.test.ts +17 -0
- package/src/tool/compoundInterest/bibliography.astro +14 -0
- package/src/tool/compoundInterest/component.astro +697 -0
- package/src/tool/compoundInterest/i18n/en.ts +212 -0
- package/src/tool/compoundInterest/i18n/es.ts +212 -0
- package/src/tool/compoundInterest/i18n/fr.ts +212 -0
- package/src/tool/compoundInterest/index.ts +34 -0
- package/src/tool/compoundInterest/logic.ts +40 -0
- package/src/tool/compoundInterest/seo.astro +14 -0
- package/src/tool/compoundInterest/ui.ts +19 -0
- package/src/tool/courtFeeCalculator/bibliography.astro +14 -0
- package/src/tool/courtFeeCalculator/component.astro +427 -0
- package/src/tool/courtFeeCalculator/i18n/en.ts +268 -0
- package/src/tool/courtFeeCalculator/i18n/es.ts +268 -0
- package/src/tool/courtFeeCalculator/i18n/fr.ts +268 -0
- package/src/tool/courtFeeCalculator/index.ts +33 -0
- package/src/tool/courtFeeCalculator/logic.ts +86 -0
- package/src/tool/courtFeeCalculator/seo.astro +14 -0
- package/src/tool/courtFeeCalculator/ui.ts +31 -0
- package/src/tool/debtSnowball/bibliography.astro +14 -0
- package/src/tool/debtSnowball/component.astro +1052 -0
- package/src/tool/debtSnowball/i18n/en.ts +288 -0
- package/src/tool/debtSnowball/i18n/es.ts +288 -0
- package/src/tool/debtSnowball/i18n/fr.ts +288 -0
- package/src/tool/debtSnowball/index.ts +37 -0
- package/src/tool/debtSnowball/logic.ts +156 -0
- package/src/tool/debtSnowball/seo.astro +14 -0
- package/src/tool/debtSnowball/ui.ts +49 -0
- package/src/tool/fireCalculator/bibliography.astro +14 -0
- package/src/tool/fireCalculator/component.astro +689 -0
- package/src/tool/fireCalculator/i18n/en.ts +261 -0
- package/src/tool/fireCalculator/i18n/es.ts +261 -0
- package/src/tool/fireCalculator/i18n/fr.ts +261 -0
- package/src/tool/fireCalculator/index.ts +33 -0
- package/src/tool/fireCalculator/logic.ts +108 -0
- package/src/tool/fireCalculator/seo.astro +14 -0
- package/src/tool/fireCalculator/ui.ts +33 -0
- package/src/tool/ibanBicSwiftConverter/bibliography.astro +14 -0
- package/src/tool/ibanBicSwiftConverter/component.astro +581 -0
- package/src/tool/ibanBicSwiftConverter/i18n/en.ts +167 -0
- package/src/tool/ibanBicSwiftConverter/i18n/es.ts +216 -0
- package/src/tool/ibanBicSwiftConverter/i18n/fr.ts +167 -0
- package/src/tool/ibanBicSwiftConverter/index.ts +33 -0
- package/src/tool/ibanBicSwiftConverter/logic.ts +101 -0
- package/src/tool/ibanBicSwiftConverter/seo.astro +14 -0
- package/src/tool/ibanBicSwiftConverter/ui.ts +17 -0
- package/src/tool/inflation/bibliography.astro +14 -0
- package/src/tool/inflation/component.astro +400 -0
- package/src/tool/inflation/i18n/en.ts +301 -0
- package/src/tool/inflation/i18n/es.ts +301 -0
- package/src/tool/inflation/i18n/fr.ts +301 -0
- package/src/tool/inflation/index.ts +34 -0
- package/src/tool/inflation/logic.ts +92 -0
- package/src/tool/inflation/seo.astro +14 -0
- package/src/tool/inflation/ui.ts +17 -0
- package/src/tool/lateInterest/bibliography.astro +14 -0
- package/src/tool/lateInterest/component.astro +655 -0
- package/src/tool/lateInterest/i18n/en.ts +255 -0
- package/src/tool/lateInterest/i18n/es.ts +224 -0
- package/src/tool/lateInterest/i18n/fr.ts +224 -0
- package/src/tool/lateInterest/index.ts +34 -0
- package/src/tool/lateInterest/logic.ts +89 -0
- package/src/tool/lateInterest/seo.astro +14 -0
- package/src/tool/lateInterest/ui.ts +33 -0
- package/src/tool/legalInterestRate/bibliography.astro +14 -0
- package/src/tool/legalInterestRate/component.astro +650 -0
- package/src/tool/legalInterestRate/i18n/en.ts +159 -0
- package/src/tool/legalInterestRate/i18n/es.ts +159 -0
- package/src/tool/legalInterestRate/i18n/fr.ts +159 -0
- package/src/tool/legalInterestRate/index.ts +33 -0
- package/src/tool/legalInterestRate/logic.ts +29 -0
- package/src/tool/legalInterestRate/seo.astro +14 -0
- package/src/tool/legalInterestRate/ui.ts +23 -0
- package/src/tool/lotteryOptimizer/bibliography.astro +14 -0
- package/src/tool/lotteryOptimizer/component.astro +863 -0
- package/src/tool/lotteryOptimizer/i18n/en.ts +188 -0
- package/src/tool/lotteryOptimizer/i18n/es.ts +281 -0
- package/src/tool/lotteryOptimizer/i18n/fr.ts +188 -0
- package/src/tool/lotteryOptimizer/index.ts +33 -0
- package/src/tool/lotteryOptimizer/logic.ts +133 -0
- package/src/tool/lotteryOptimizer/seo.astro +14 -0
- package/src/tool/lotteryOptimizer/ui.ts +33 -0
- package/src/tool/mortgage/bibliography.astro +14 -0
- package/src/tool/mortgage/component.astro +1030 -0
- package/src/tool/mortgage/i18n/en.ts +227 -0
- package/src/tool/mortgage/i18n/es.ts +227 -0
- package/src/tool/mortgage/i18n/fr.ts +227 -0
- package/src/tool/mortgage/index.ts +34 -0
- package/src/tool/mortgage/logic.ts +118 -0
- package/src/tool/mortgage/seo.astro +14 -0
- package/src/tool/mortgage/ui.ts +35 -0
- package/src/tool/percentageCalculator/bibliography.astro +14 -0
- package/src/tool/percentageCalculator/component.astro +640 -0
- package/src/tool/percentageCalculator/i18n/en.ts +233 -0
- package/src/tool/percentageCalculator/i18n/es.ts +233 -0
- package/src/tool/percentageCalculator/i18n/fr.ts +233 -0
- package/src/tool/percentageCalculator/index.ts +34 -0
- package/src/tool/percentageCalculator/logic.ts +48 -0
- package/src/tool/percentageCalculator/seo.astro +14 -0
- package/src/tool/percentageCalculator/ui.ts +30 -0
- package/src/tool/rentIncreaseCalculator/bibliography.astro +14 -0
- package/src/tool/rentIncreaseCalculator/component.astro +587 -0
- package/src/tool/rentIncreaseCalculator/i18n/en.ts +159 -0
- package/src/tool/rentIncreaseCalculator/i18n/es.ts +220 -0
- package/src/tool/rentIncreaseCalculator/i18n/fr.ts +159 -0
- package/src/tool/rentIncreaseCalculator/index.ts +33 -0
- package/src/tool/rentIncreaseCalculator/logic.ts +43 -0
- package/src/tool/rentIncreaseCalculator/seo.astro +14 -0
- package/src/tool/rentIncreaseCalculator/ui.ts +19 -0
- package/src/tools.ts +16 -0
- package/src/types.ts +74 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { InflationUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'inflation-calculator-spain';
|
|
6
|
+
const title = 'Inflation Calculator Spain: Historical Money Value';
|
|
7
|
+
const description =
|
|
8
|
+
'Discover what your pesetas are worth today or how much cost of living has increased since 1980. Updated Spanish CPI historical data through 2026.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'What is CPI and how is it calculated?',
|
|
13
|
+
answer:
|
|
14
|
+
'The Consumer Price Index (CPI) measures the evolution of prices for a basket of goods and services representative of Spanish consumption. It is calculated by comparing the cost of this basket across different time periods.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: 'How much has money lost value since 1980?',
|
|
18
|
+
answer:
|
|
19
|
+
'1,000 pesetas from 1980 are equivalent to approximately 60€ in today\'s purchasing power. Money has lost over 90% of its value in these 40+ years due to accumulated inflation.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: 'Why do my savings lose value if I don\'t move them?',
|
|
23
|
+
answer:
|
|
24
|
+
'If inflation is 3% annually and your account earns 0% interest, you lose 3% of purchasing power each year. To maintain real value, your savings must generate at least the inflation rate.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: 'What was Spain\'s highest inflation period?',
|
|
28
|
+
answer:
|
|
29
|
+
'The 1980s saw the most inflation, with double-digit rates (up to 15%). Prices changed drastically month-to-month. Since the euro (2002), inflation has been more controlled, except during 2021-2023.',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
question: 'How does inflation affect my savings?',
|
|
33
|
+
answer:
|
|
34
|
+
'Inflation acts as a "silent tax". If inflation is 5% and your money is under your mattress, at year\'s end you can buy 5% fewer products. It\'s critical to invest to counteract this effect.',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
const howToData = [
|
|
39
|
+
{
|
|
40
|
+
name: 'Select the starting year',
|
|
41
|
+
text: 'Choose from which date you want to calculate money\'s value (available from 1980 to 2026).',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Enter the amount',
|
|
45
|
+
text: 'Type the amount in pesetas (for old dates) or euros you want to compare.',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Choose the final year',
|
|
49
|
+
text: 'Define when you want to see the purchasing power evolution.',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Analyze the real result',
|
|
53
|
+
text: 'View the purchasing power equivalence and accumulated inflation percentage for that period.',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
58
|
+
'@context': 'https://schema.org',
|
|
59
|
+
'@type': 'FAQPage',
|
|
60
|
+
mainEntity: faqData.map((item) => ({
|
|
61
|
+
'@type': 'Question',
|
|
62
|
+
name: item.question,
|
|
63
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
64
|
+
})),
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const howToSchema: WithContext<HowTo> = {
|
|
68
|
+
'@context': 'https://schema.org',
|
|
69
|
+
'@type': 'HowTo',
|
|
70
|
+
name: title,
|
|
71
|
+
description,
|
|
72
|
+
step: howToData.map((step, i) => ({
|
|
73
|
+
'@type': 'HowToStep',
|
|
74
|
+
position: i + 1,
|
|
75
|
+
name: step.name,
|
|
76
|
+
text: step.text,
|
|
77
|
+
})),
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
81
|
+
'@context': 'https://schema.org',
|
|
82
|
+
'@type': 'SoftwareApplication',
|
|
83
|
+
name: title,
|
|
84
|
+
description,
|
|
85
|
+
applicationCategory: 'FinanceApplication',
|
|
86
|
+
operatingSystem: 'All',
|
|
87
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
88
|
+
inLanguage: 'en',
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const content: ToolLocaleContent<InflationUI> = {
|
|
92
|
+
slug,
|
|
93
|
+
title,
|
|
94
|
+
description,
|
|
95
|
+
faqTitle: 'Frequently Asked Questions',
|
|
96
|
+
faq: faqData,
|
|
97
|
+
bibliographyTitle: 'Sources & References',
|
|
98
|
+
bibliography: [
|
|
99
|
+
{
|
|
100
|
+
name: 'INE: Spanish Consumer Price Index',
|
|
101
|
+
url: 'https://www.ine.es/',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'Bank of Spain: Inflation Analysis',
|
|
105
|
+
url: 'https://www.bde.es/',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'ECB: Historical Eurozone Inflation Data',
|
|
109
|
+
url: 'https://www.ecb.europa.eu/',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'OECD: Purchasing Power Parity Analysis',
|
|
113
|
+
url: 'https://www.oecd.org/',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
howTo: howToData,
|
|
117
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
118
|
+
seo: [
|
|
119
|
+
{
|
|
120
|
+
type: 'title',
|
|
121
|
+
text: 'Historical Inflation Calculator: Understand the Real Value of Your Money',
|
|
122
|
+
level: 2,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: 'paragraph',
|
|
126
|
+
html: 'Inflation is the "silent tax" that devours your savings year after year. Do you know how much your money has lost in value since 1980? How much does that coffee really cost today that you paid 300 pesetas for 20 years ago?',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: 'title',
|
|
130
|
+
text: 'Inflation: The Silent Tax on Your Wealth',
|
|
131
|
+
level: 3,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
type: 'paragraph',
|
|
135
|
+
html: '<strong>Inflation</strong> is the sustained and general increase in prices. Although it seems like a technical phenomenon, its impact on the real economy is direct: it reduces the amount of goods you can buy with the same money, eroding a lifetime of savings if protective measures are not taken.',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: 'stats',
|
|
139
|
+
columns: 3,
|
|
140
|
+
items: [
|
|
141
|
+
{
|
|
142
|
+
value: '15.6%',
|
|
143
|
+
label: 'Historical Record 1980',
|
|
144
|
+
icon: 'mdi:trending-up',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
value: '8.4%',
|
|
148
|
+
label: 'Price Peak 2022',
|
|
149
|
+
icon: 'mdi:alert',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
value: '2.0%',
|
|
153
|
+
label: 'Stability Target',
|
|
154
|
+
icon: 'mdi:target',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: 'title',
|
|
160
|
+
text: 'Essential Financial Terms',
|
|
161
|
+
level: 3,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: 'glossary',
|
|
165
|
+
items: [
|
|
166
|
+
{
|
|
167
|
+
term: 'CPI',
|
|
168
|
+
definition: 'An indicator that summarizes the variation in prices of a basic consumption basket.',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
term: 'Purchasing Power',
|
|
172
|
+
definition: 'The real buying capacity of money at a given time.',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
term: 'Deflation',
|
|
176
|
+
definition: 'General decline in prices that can paralyze investment.',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
term: 'Stagflation',
|
|
180
|
+
definition: 'Scenario of high inflation combined with economic stagnation.',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: 'title',
|
|
186
|
+
text: 'Economic Milestones and Comparison',
|
|
187
|
+
level: 2,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
type: 'comparative',
|
|
191
|
+
columns: 2,
|
|
192
|
+
items: [
|
|
193
|
+
{
|
|
194
|
+
title: '1980s Crisis',
|
|
195
|
+
description: 'Period marked by double-digit inflation and major labor instability.',
|
|
196
|
+
points: [
|
|
197
|
+
'Extremely high interest rates',
|
|
198
|
+
'Rapid loss of peseta value',
|
|
199
|
+
'Wages devoured by rising prices',
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
title: 'Pandemic Inflation: 2021 to 2023',
|
|
204
|
+
description: 'Sharp price increase due to energy costs and supply chain issues.',
|
|
205
|
+
highlight: true,
|
|
206
|
+
points: [
|
|
207
|
+
'Direct impact on cost of living',
|
|
208
|
+
'ECB rate hikes to slow consumption',
|
|
209
|
+
'Slow recovery of purchasing power',
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: 'table',
|
|
216
|
+
headers: ['Item or Indicator', 'Value in 1980 (Estimated)', 'Value in 2026 (Projected)', 'Variation'],
|
|
217
|
+
rows: [
|
|
218
|
+
['Loaf of Bread', '0.15€ (25 pts)', '1.40€', '833%'],
|
|
219
|
+
['Coffee at Café', '0.30€ (50 pts)', '1.65€', '450%'],
|
|
220
|
+
['Movie Ticket', '1.20€ (200 pts)', '9.80€', '716%'],
|
|
221
|
+
['Monthly Minimum Wage', '154€ (25,615 pts)', '1,140€', '640%'],
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
type: 'card',
|
|
226
|
+
icon: 'mdi:piggy-bank',
|
|
227
|
+
title: 'The Danger of Cash',
|
|
228
|
+
html: 'Keeping money under the mattress or in non-yielding savings accounts is a guaranteed loss of capital. Average inflation of 3% cuts the value of your savings in half in less than 25 years.',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
type: 'title',
|
|
232
|
+
text: 'Tips to Protect Your Savings',
|
|
233
|
+
level: 2,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
type: 'proscons',
|
|
237
|
+
title: 'Investment Strategies',
|
|
238
|
+
items: [
|
|
239
|
+
{
|
|
240
|
+
pro: 'Real Assets: Real estate usually appreciates with inflation.',
|
|
241
|
+
con: 'Low liquidity and high entry costs.',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
pro: 'Stock Market & Funds: Returns that usually exceed CPI over the long term.',
|
|
245
|
+
con: 'Volatility and short-term market risk.',
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
type: 'title',
|
|
251
|
+
text: 'Healthy Financial Habits',
|
|
252
|
+
level: 3,
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
type: 'list',
|
|
256
|
+
items: [
|
|
257
|
+
'Periodically review your expenses to detect hidden increases.',
|
|
258
|
+
'Diversify savings across different types of assets.',
|
|
259
|
+
'Consider inflation-linked government bonds.',
|
|
260
|
+
'Use calculation tools to contextualize offers and salaries.',
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
type: 'diagnostic',
|
|
265
|
+
variant: 'warning',
|
|
266
|
+
title: 'Warning: Negative Compound Interest',
|
|
267
|
+
html: 'Inflation acts as reverse compound interest. Each year, the percentage loss applies to an already diminished value, accelerating wealth loss if you don\'t intervene.',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: 'summary',
|
|
271
|
+
title: 'Key Takeaways',
|
|
272
|
+
items: [
|
|
273
|
+
'CPI is just an average; your personal inflation depends on your habits.',
|
|
274
|
+
'Investing is not optional if you want to preserve the real value of your work.',
|
|
275
|
+
'Inflation calculators are vital to understanding long-term contracts.',
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
type: 'message',
|
|
280
|
+
title: 'Take Control of Your Economy',
|
|
281
|
+
html: 'Our calculator uses official INE data to give you the most accurate view of Spain\'s past and present economic landscape.',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
ui: {
|
|
285
|
+
labelTitle: 'Inflation Calculator Spain',
|
|
286
|
+
labelInitialAmount: 'Initial Money',
|
|
287
|
+
labelInitialYear: 'In the year',
|
|
288
|
+
labelFinalAmount: 'Equivalent Today',
|
|
289
|
+
labelFinalYear: 'Year 2026',
|
|
290
|
+
labelInflationRate: 'Accumulated Inflation',
|
|
291
|
+
labelCalculatedOn: 'Calculation made using official INE data through 2025 and estimated projections for the end of 2026.',
|
|
292
|
+
currencySymbol: '€',
|
|
293
|
+
currencyCode: 'EUR',
|
|
294
|
+
currencyLocale: 'es-ES',
|
|
295
|
+
labelYearSelect: 'In the year',
|
|
296
|
+
labelIn: 'In',
|
|
297
|
+
labelEquivalentToday: 'is equivalent today to',
|
|
298
|
+
labelInflationAccumulated: 'Accumulated Inflation',
|
|
299
|
+
labelYear: 'Year',
|
|
300
|
+
},
|
|
301
|
+
};
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { InflationUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'inflacion';
|
|
6
|
+
const title = 'Calculadora de Inflación en España: Valor del Dinero Histórico';
|
|
7
|
+
const description =
|
|
8
|
+
'Descubre cuánto valdrían tus pesetas hoy o cuánto ha subido el coste de vida desde 1980. Datos IPC históricos de España actualizados a 2026.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: '¿Qué es el IPC y cómo se calcula?',
|
|
13
|
+
answer:
|
|
14
|
+
'El Índice de Precios de Consumo (IPC) mide la evolución de los precios de una cesta de bienes y servicios representativa del consumo español. Se calcula comparando el coste de esta cesta en diferentes períodos de tiempo.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: '¿Cuánto ha perdido valor el dinero desde 1980?',
|
|
18
|
+
answer:
|
|
19
|
+
'1.000 pesetas de 1980 equivalen aproximadamente a 60€ de hoy en poder adquisitivo. El dinero ha perdido más del 90% de su valor en estos 40+ años debido a la inflación acumulada.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: '¿Por qué mis ahorros pierden valor si no los muevo?',
|
|
23
|
+
answer:
|
|
24
|
+
'Si la inflación es del 3% anual y tu cuenta da 0% de interés, pierdes un 3% de poder adquisitivo cada año. Para mantener el valor real, tus ahorros deben generar al menos la tasa de inflación.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: '¿Cuál fue el período de mayor inflación en España?',
|
|
28
|
+
answer:
|
|
29
|
+
'Los años 80 fueron los más inflacionarios, con tasas de doble dígito (hasta 15%). Los precios cambiaban drásticamente mes a mes. Desde el euro (2002), la inflación ha sido más controlada, excepto en 2021-2023.',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
question: '¿Cómo afecta la inflación a mis ahorros?',
|
|
33
|
+
answer:
|
|
34
|
+
'La inflación actúa como un \'impuesto silencioso\'. Si la inflación es del 5% y tu dinero está en el colchón, al final del año podrás comprar un 5% menos de productos. Es fundamental invertir para contrarrestar este efecto.',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
const howToData = [
|
|
39
|
+
{
|
|
40
|
+
name: 'Seleccionar el año de origen',
|
|
41
|
+
text: 'Elige desde qué fecha quieres calcular el valor del dinero (disponible desde 1980 hasta 2026).',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Introducir la cantidad',
|
|
45
|
+
text: 'Escribe el importe en pesetas (para fechas antiguas) o en euros que quieres comparar.',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Elegir el año final',
|
|
49
|
+
text: 'Define hasta qué momento quieres ver la evolución del poder adquisitivo.',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Analizar el resultado real',
|
|
53
|
+
text: 'Observa la equivalencia de poder adquisitivo y el porcentaje de inflación acumulada en dicho periodo.',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
58
|
+
'@context': 'https://schema.org',
|
|
59
|
+
'@type': 'FAQPage',
|
|
60
|
+
mainEntity: faqData.map((item) => ({
|
|
61
|
+
'@type': 'Question',
|
|
62
|
+
name: item.question,
|
|
63
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
64
|
+
})),
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const howToSchema: WithContext<HowTo> = {
|
|
68
|
+
'@context': 'https://schema.org',
|
|
69
|
+
'@type': 'HowTo',
|
|
70
|
+
name: title,
|
|
71
|
+
description,
|
|
72
|
+
step: howToData.map((step, i) => ({
|
|
73
|
+
'@type': 'HowToStep',
|
|
74
|
+
position: i + 1,
|
|
75
|
+
name: step.name,
|
|
76
|
+
text: step.text,
|
|
77
|
+
})),
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
81
|
+
'@context': 'https://schema.org',
|
|
82
|
+
'@type': 'SoftwareApplication',
|
|
83
|
+
name: title,
|
|
84
|
+
description,
|
|
85
|
+
applicationCategory: 'FinanceApplication',
|
|
86
|
+
operatingSystem: 'All',
|
|
87
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
88
|
+
inLanguage: 'es',
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const content: ToolLocaleContent<InflationUI> = {
|
|
92
|
+
slug,
|
|
93
|
+
title,
|
|
94
|
+
description,
|
|
95
|
+
faqTitle: 'Preguntas Frecuentes sobre Inflación',
|
|
96
|
+
faq: faqData,
|
|
97
|
+
bibliographyTitle: 'Fuentes y Referencias Oficiales',
|
|
98
|
+
bibliography: [
|
|
99
|
+
{
|
|
100
|
+
name: 'INE: Índice de Precios de Consumo',
|
|
101
|
+
url: 'https://www.ine.es/dyngs/INEsite/es/catalom.htm?cid=1254736116996',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'Banco de España: Análisis de la Inflación',
|
|
105
|
+
url: 'https://www.bde.es/',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'BCE: Política Monetaria y Precios',
|
|
109
|
+
url: 'https://www.ecb.europa.eu/',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'OCU: Guía para entender el IPC',
|
|
113
|
+
url: 'https://www.ocu.org/dinero/ahorros/',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
howTo: howToData,
|
|
117
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
118
|
+
seo: [
|
|
119
|
+
{
|
|
120
|
+
type: 'title',
|
|
121
|
+
text: 'Calculadora de Inflación Histórica: Entiende el Valor Real de tu Dinero',
|
|
122
|
+
level: 2,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: 'paragraph',
|
|
126
|
+
html: 'La inflación es el "impuesto silencioso" que devora tus ahorros año tras año. ¿Sabes cuánto ha perdido valor tu dinero desde 1980? ¿Cuánto cuesta realmente ese café que pagabas a 300 pesetas hace 20 años?',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: 'title',
|
|
130
|
+
text: 'La Inflación: El Impuesto Silencioso sobre tu Patrimonio',
|
|
131
|
+
level: 3,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
type: 'paragraph',
|
|
135
|
+
html: 'La <strong>inflación</strong> es el incremento sostenido y generalizado de los precios. Aunque parezca un fenómeno técnico, su impacto en la economía real es directo: reduce la cantidad de bienes que puedes comprar con el mismo dinero, erosionando el ahorro de toda una vida si no se toman medidas protectoras.',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: 'stats',
|
|
139
|
+
columns: 3,
|
|
140
|
+
items: [
|
|
141
|
+
{
|
|
142
|
+
value: '15.6%',
|
|
143
|
+
label: 'Récord Histórico 1980',
|
|
144
|
+
icon: 'mdi:trending-up',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
value: '8.4%',
|
|
148
|
+
label: 'Pico de Precios 2022',
|
|
149
|
+
icon: 'mdi:alert',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
value: '2.0%',
|
|
153
|
+
label: 'Objetivo de Estabilidad',
|
|
154
|
+
icon: 'mdi:target',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: 'title',
|
|
160
|
+
text: 'Términos Financieros Esenciales',
|
|
161
|
+
level: 3,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
type: 'glossary',
|
|
165
|
+
items: [
|
|
166
|
+
{
|
|
167
|
+
term: 'IPC',
|
|
168
|
+
definition: 'Indicador que resume la variación de precios de una cesta básica de consumo.',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
term: 'Poder Adquisitivo',
|
|
172
|
+
definition: 'Capacidad de compra real de una moneda en un momento determinado.',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
term: 'Deflación',
|
|
176
|
+
definition: 'Descenso generalizado de los precios que puede paralizar la inversión.',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
term: 'Estanflación',
|
|
180
|
+
definition: 'Escenario de alta inflación combinado con estancamiento económico.',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
type: 'title',
|
|
186
|
+
text: 'Hitos Económicos y Comparativa',
|
|
187
|
+
level: 2,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
type: 'comparative',
|
|
191
|
+
columns: 2,
|
|
192
|
+
items: [
|
|
193
|
+
{
|
|
194
|
+
title: 'Crisis de los años 80',
|
|
195
|
+
description: 'Periodo marcado por inflaciones de doble dígito y gran inestabilidad laboral.',
|
|
196
|
+
points: [
|
|
197
|
+
'Tipos de interés extremadamente altos',
|
|
198
|
+
'Pérdida rápida de valor de la peseta',
|
|
199
|
+
'Sueldos devorados por los precios',
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
title: 'Inflación de la Pandemia: 2021 a 2023',
|
|
204
|
+
description: 'Subida brusca por costes energéticos y problemas en la cadena de suministro.',
|
|
205
|
+
highlight: true,
|
|
206
|
+
points: [
|
|
207
|
+
'Impacto directo en cesta de la compra',
|
|
208
|
+
'Subida de tipos del BCE para frenar el consumo',
|
|
209
|
+
'Recuperación lenta del poder de compra',
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: 'table',
|
|
216
|
+
headers: ['Producto o Indicador', 'Valor en 1980 (Estimado)', 'Valor en 2026 (Proyectado)', 'Variación'],
|
|
217
|
+
rows: [
|
|
218
|
+
['Barra de Pan', '0.15€ (25 pts)', '1.40€', '833%'],
|
|
219
|
+
['Café en Establecimiento', '0.30€ (50 pts)', '1.65€', '450%'],
|
|
220
|
+
['Entrada de Cine', '1.20€ (200 pts)', '9.80€', '716%'],
|
|
221
|
+
['Salario Mínimo Mensual', '154€ (25.615 pts)', '1.140€', '640%'],
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
type: 'card',
|
|
226
|
+
icon: 'mdi:piggy-bank',
|
|
227
|
+
title: 'El Peligro del Efectivo',
|
|
228
|
+
html: 'Guardar dinero bajo el colchón o en cuentas corriente sin rentabilidad es una pérdida de capital garantizada. Una inflación media del 3% reduce a la mitad el valor de tus ahorros en menos de 25 años.',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
type: 'title',
|
|
232
|
+
text: 'Consejos para Proteger tus Ahorros',
|
|
233
|
+
level: 2,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
type: 'proscons',
|
|
237
|
+
title: 'Estrategias de Inversión',
|
|
238
|
+
items: [
|
|
239
|
+
{
|
|
240
|
+
pro: 'Activos Reales: Los inmuebles suelen revalorizarse con la inflación.',
|
|
241
|
+
con: 'Baja liquidez y altos costes de entrada.',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
pro: 'Bolsa y Fondos: Rentabilidades que suelen superar al IPC a largo plazo.',
|
|
245
|
+
con: 'Volatilidad y riesgo de mercado a corto plazo.',
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
type: 'title',
|
|
251
|
+
text: 'Hábitos Financieros Saludables',
|
|
252
|
+
level: 3,
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
type: 'list',
|
|
256
|
+
items: [
|
|
257
|
+
'Revisar periódicamente tus gastos para detectar subidas ocultas.',
|
|
258
|
+
'Diversificar ahorros en diferentes tipos de activos.',
|
|
259
|
+
'Considerar bonos del estado vinculados a la inflación.',
|
|
260
|
+
'Utilizar herramientas de cálculo para contextualizar ofertas y salarios.',
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
type: 'diagnostic',
|
|
265
|
+
variant: 'warning',
|
|
266
|
+
title: 'Advertencia sobre el Interés Compuesto Negativo',
|
|
267
|
+
html: 'La inflación actúa como un interés compuesto inverso. Cada año, el porcentaje de pérdida se aplica sobre un valor ya disminuido, acelerando la pérdida de riqueza si no se interviene.',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: 'summary',
|
|
271
|
+
title: 'Conclusiones Clave',
|
|
272
|
+
items: [
|
|
273
|
+
'El IPC es solo un promedio; tu inflación personal depende de tus hábitos.',
|
|
274
|
+
'Invertir no es opcional si se quiere preservar el valor real del trabajo.',
|
|
275
|
+
'Las calculadoras de inflación son vitales para entender contratos de largo plazo.',
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
type: 'message',
|
|
280
|
+
title: 'Toma el Control de tu Economía',
|
|
281
|
+
html: 'Nuestra calculadora utiliza datos oficiales del INE para ofrecerte la visión más precisa del pasado y presente económico de España.',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
ui: {
|
|
285
|
+
labelTitle: 'Calculadora de Inflación España',
|
|
286
|
+
labelInitialAmount: 'Dinero Inicial',
|
|
287
|
+
labelInitialYear: 'En el año',
|
|
288
|
+
labelFinalAmount: 'Equivalencia Hoy',
|
|
289
|
+
labelFinalYear: 'Año 2026',
|
|
290
|
+
labelInflationRate: 'Inflación Acumulada',
|
|
291
|
+
labelCalculatedOn: 'Cálculo realizado utilizando datos oficiales del INE hasta 2025 y proyecciones estimadas para el cierre de 2026.',
|
|
292
|
+
currencySymbol: '€',
|
|
293
|
+
currencyCode: 'EUR',
|
|
294
|
+
currencyLocale: 'es-ES',
|
|
295
|
+
labelYearSelect: 'En el año',
|
|
296
|
+
labelIn: 'En',
|
|
297
|
+
labelEquivalentToday: 'equivale hoy a',
|
|
298
|
+
labelInflationAccumulated: 'Inflación Acumulada',
|
|
299
|
+
labelYear: 'Año',
|
|
300
|
+
},
|
|
301
|
+
};
|