@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.
Files changed (133) hide show
  1. package/package.json +64 -0
  2. package/src/category/i18n/en.ts +159 -0
  3. package/src/category/i18n/es.ts +159 -0
  4. package/src/category/i18n/fr.ts +159 -0
  5. package/src/category/index.ts +24 -0
  6. package/src/category/seo.astro +15 -0
  7. package/src/components/PreviewNavSidebar.astro +116 -0
  8. package/src/components/PreviewToolbar.astro +143 -0
  9. package/src/data.ts +11 -0
  10. package/src/env.d.ts +5 -0
  11. package/src/index.ts +32 -0
  12. package/src/layouts/PreviewLayout.astro +117 -0
  13. package/src/pages/[locale]/[slug].astro +146 -0
  14. package/src/pages/[locale].astro +251 -0
  15. package/src/pages/index.astro +4 -0
  16. package/src/tests/faq_count.test.ts +19 -0
  17. package/src/tests/locale_completeness.test.ts +39 -0
  18. package/src/tests/mocks/astro_mock.js +2 -0
  19. package/src/tests/no_h1_in_components.test.ts +48 -0
  20. package/src/tests/schemas_fulfillment.test.ts +23 -0
  21. package/src/tests/seo_length.test.ts +23 -0
  22. package/src/tests/title_quality.test.ts +55 -0
  23. package/src/tests/tool_validation.test.ts +17 -0
  24. package/src/tool/compoundInterest/bibliography.astro +14 -0
  25. package/src/tool/compoundInterest/component.astro +697 -0
  26. package/src/tool/compoundInterest/i18n/en.ts +212 -0
  27. package/src/tool/compoundInterest/i18n/es.ts +212 -0
  28. package/src/tool/compoundInterest/i18n/fr.ts +212 -0
  29. package/src/tool/compoundInterest/index.ts +34 -0
  30. package/src/tool/compoundInterest/logic.ts +40 -0
  31. package/src/tool/compoundInterest/seo.astro +14 -0
  32. package/src/tool/compoundInterest/ui.ts +19 -0
  33. package/src/tool/courtFeeCalculator/bibliography.astro +14 -0
  34. package/src/tool/courtFeeCalculator/component.astro +427 -0
  35. package/src/tool/courtFeeCalculator/i18n/en.ts +268 -0
  36. package/src/tool/courtFeeCalculator/i18n/es.ts +268 -0
  37. package/src/tool/courtFeeCalculator/i18n/fr.ts +268 -0
  38. package/src/tool/courtFeeCalculator/index.ts +33 -0
  39. package/src/tool/courtFeeCalculator/logic.ts +86 -0
  40. package/src/tool/courtFeeCalculator/seo.astro +14 -0
  41. package/src/tool/courtFeeCalculator/ui.ts +31 -0
  42. package/src/tool/debtSnowball/bibliography.astro +14 -0
  43. package/src/tool/debtSnowball/component.astro +1052 -0
  44. package/src/tool/debtSnowball/i18n/en.ts +288 -0
  45. package/src/tool/debtSnowball/i18n/es.ts +288 -0
  46. package/src/tool/debtSnowball/i18n/fr.ts +288 -0
  47. package/src/tool/debtSnowball/index.ts +37 -0
  48. package/src/tool/debtSnowball/logic.ts +156 -0
  49. package/src/tool/debtSnowball/seo.astro +14 -0
  50. package/src/tool/debtSnowball/ui.ts +49 -0
  51. package/src/tool/fireCalculator/bibliography.astro +14 -0
  52. package/src/tool/fireCalculator/component.astro +689 -0
  53. package/src/tool/fireCalculator/i18n/en.ts +261 -0
  54. package/src/tool/fireCalculator/i18n/es.ts +261 -0
  55. package/src/tool/fireCalculator/i18n/fr.ts +261 -0
  56. package/src/tool/fireCalculator/index.ts +33 -0
  57. package/src/tool/fireCalculator/logic.ts +108 -0
  58. package/src/tool/fireCalculator/seo.astro +14 -0
  59. package/src/tool/fireCalculator/ui.ts +33 -0
  60. package/src/tool/ibanBicSwiftConverter/bibliography.astro +14 -0
  61. package/src/tool/ibanBicSwiftConverter/component.astro +581 -0
  62. package/src/tool/ibanBicSwiftConverter/i18n/en.ts +167 -0
  63. package/src/tool/ibanBicSwiftConverter/i18n/es.ts +216 -0
  64. package/src/tool/ibanBicSwiftConverter/i18n/fr.ts +167 -0
  65. package/src/tool/ibanBicSwiftConverter/index.ts +33 -0
  66. package/src/tool/ibanBicSwiftConverter/logic.ts +101 -0
  67. package/src/tool/ibanBicSwiftConverter/seo.astro +14 -0
  68. package/src/tool/ibanBicSwiftConverter/ui.ts +17 -0
  69. package/src/tool/inflation/bibliography.astro +14 -0
  70. package/src/tool/inflation/component.astro +400 -0
  71. package/src/tool/inflation/i18n/en.ts +301 -0
  72. package/src/tool/inflation/i18n/es.ts +301 -0
  73. package/src/tool/inflation/i18n/fr.ts +301 -0
  74. package/src/tool/inflation/index.ts +34 -0
  75. package/src/tool/inflation/logic.ts +92 -0
  76. package/src/tool/inflation/seo.astro +14 -0
  77. package/src/tool/inflation/ui.ts +17 -0
  78. package/src/tool/lateInterest/bibliography.astro +14 -0
  79. package/src/tool/lateInterest/component.astro +655 -0
  80. package/src/tool/lateInterest/i18n/en.ts +255 -0
  81. package/src/tool/lateInterest/i18n/es.ts +224 -0
  82. package/src/tool/lateInterest/i18n/fr.ts +224 -0
  83. package/src/tool/lateInterest/index.ts +34 -0
  84. package/src/tool/lateInterest/logic.ts +89 -0
  85. package/src/tool/lateInterest/seo.astro +14 -0
  86. package/src/tool/lateInterest/ui.ts +33 -0
  87. package/src/tool/legalInterestRate/bibliography.astro +14 -0
  88. package/src/tool/legalInterestRate/component.astro +650 -0
  89. package/src/tool/legalInterestRate/i18n/en.ts +159 -0
  90. package/src/tool/legalInterestRate/i18n/es.ts +159 -0
  91. package/src/tool/legalInterestRate/i18n/fr.ts +159 -0
  92. package/src/tool/legalInterestRate/index.ts +33 -0
  93. package/src/tool/legalInterestRate/logic.ts +29 -0
  94. package/src/tool/legalInterestRate/seo.astro +14 -0
  95. package/src/tool/legalInterestRate/ui.ts +23 -0
  96. package/src/tool/lotteryOptimizer/bibliography.astro +14 -0
  97. package/src/tool/lotteryOptimizer/component.astro +863 -0
  98. package/src/tool/lotteryOptimizer/i18n/en.ts +188 -0
  99. package/src/tool/lotteryOptimizer/i18n/es.ts +281 -0
  100. package/src/tool/lotteryOptimizer/i18n/fr.ts +188 -0
  101. package/src/tool/lotteryOptimizer/index.ts +33 -0
  102. package/src/tool/lotteryOptimizer/logic.ts +133 -0
  103. package/src/tool/lotteryOptimizer/seo.astro +14 -0
  104. package/src/tool/lotteryOptimizer/ui.ts +33 -0
  105. package/src/tool/mortgage/bibliography.astro +14 -0
  106. package/src/tool/mortgage/component.astro +1030 -0
  107. package/src/tool/mortgage/i18n/en.ts +227 -0
  108. package/src/tool/mortgage/i18n/es.ts +227 -0
  109. package/src/tool/mortgage/i18n/fr.ts +227 -0
  110. package/src/tool/mortgage/index.ts +34 -0
  111. package/src/tool/mortgage/logic.ts +118 -0
  112. package/src/tool/mortgage/seo.astro +14 -0
  113. package/src/tool/mortgage/ui.ts +35 -0
  114. package/src/tool/percentageCalculator/bibliography.astro +14 -0
  115. package/src/tool/percentageCalculator/component.astro +640 -0
  116. package/src/tool/percentageCalculator/i18n/en.ts +233 -0
  117. package/src/tool/percentageCalculator/i18n/es.ts +233 -0
  118. package/src/tool/percentageCalculator/i18n/fr.ts +233 -0
  119. package/src/tool/percentageCalculator/index.ts +34 -0
  120. package/src/tool/percentageCalculator/logic.ts +48 -0
  121. package/src/tool/percentageCalculator/seo.astro +14 -0
  122. package/src/tool/percentageCalculator/ui.ts +30 -0
  123. package/src/tool/rentIncreaseCalculator/bibliography.astro +14 -0
  124. package/src/tool/rentIncreaseCalculator/component.astro +587 -0
  125. package/src/tool/rentIncreaseCalculator/i18n/en.ts +159 -0
  126. package/src/tool/rentIncreaseCalculator/i18n/es.ts +220 -0
  127. package/src/tool/rentIncreaseCalculator/i18n/fr.ts +159 -0
  128. package/src/tool/rentIncreaseCalculator/index.ts +33 -0
  129. package/src/tool/rentIncreaseCalculator/logic.ts +43 -0
  130. package/src/tool/rentIncreaseCalculator/seo.astro +14 -0
  131. package/src/tool/rentIncreaseCalculator/ui.ts +19 -0
  132. package/src/tools.ts +16 -0
  133. package/src/types.ts +74 -0
@@ -0,0 +1,255 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { LateInterestUI } from '../ui';
4
+
5
+ const slug = 'late-interest-calculator';
6
+ const title = 'Late Interest Calculator: Calculate Penalty Interest';
7
+ const description =
8
+ 'Calculate late payment interest and penalty charges. Tools for simple, compound, and monthly interest calculations. Perfect for overdue invoices and debt calculations.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'What is late payment interest or penalty interest?',
13
+ answer:
14
+ 'It is the interest charged on an amount not paid within the agreed deadline. It is calculated on the original debt and accumulates until full payment is made.',
15
+ },
16
+ {
17
+ question: 'What is the difference between simple and compound interest?',
18
+ answer:
19
+ 'Simple interest is calculated only on the original capital each day. Compound interest is calculated on the capital plus accumulated interest, causing debt to grow faster.',
20
+ },
21
+ {
22
+ question: 'How is daily interest calculated?',
23
+ answer:
24
+ 'Divide the annual rate by 365 days and apply it to the original capital. For example, 10% annual = 0.0274% daily.',
25
+ },
26
+ {
27
+ question: 'What late interest rate should I apply?',
28
+ answer:
29
+ 'It depends on local legislation and contract terms. Different countries have different limits on penalty rates. Consult with a legal advisor for your specific case.',
30
+ },
31
+ {
32
+ question: 'Can I use this calculator for legal debts?',
33
+ answer:
34
+ 'This is an informational tool. For real debts, verify contract terms and local legislation. Consult a lawyer if you have doubts about rate calculations.',
35
+ },
36
+ ];
37
+
38
+ const howToData = [
39
+ {
40
+ name: 'Choose calculation type',
41
+ text: 'Select between simple interest, compound, or monthly based on your situation.',
42
+ },
43
+ {
44
+ name: 'Enter the data',
45
+ text: 'Input the original amount, interest rate, and delay period.',
46
+ },
47
+ {
48
+ name: 'Get your result',
49
+ text: 'The calculator shows daily accumulated interest, total interest, final amount, and effective rate.',
50
+ },
51
+ ];
52
+
53
+ const faqSchema: WithContext<FAQPage> = {
54
+ '@context': 'https://schema.org',
55
+ '@type': 'FAQPage',
56
+ mainEntity: faqData.map((item) => ({
57
+ '@type': 'Question',
58
+ name: item.question,
59
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
60
+ })),
61
+ };
62
+
63
+ const howToSchema: WithContext<HowTo> = {
64
+ '@context': 'https://schema.org',
65
+ '@type': 'HowTo',
66
+ name: title,
67
+ description,
68
+ step: howToData.map((step, i) => ({
69
+ '@type': 'HowToStep',
70
+ position: i + 1,
71
+ name: step.name,
72
+ text: step.text,
73
+ })),
74
+ };
75
+
76
+ const appSchema: WithContext<SoftwareApplication> = {
77
+ '@context': 'https://schema.org',
78
+ '@type': 'SoftwareApplication',
79
+ name: title,
80
+ description,
81
+ applicationCategory: 'FinanceApplication',
82
+ operatingSystem: 'All',
83
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
84
+ inLanguage: 'en',
85
+ };
86
+
87
+ export const content: ToolLocaleContent<LateInterestUI> = {
88
+ slug,
89
+ title,
90
+ description,
91
+ faqTitle: 'Frequently Asked Questions',
92
+ faq: faqData,
93
+ bibliographyTitle: 'Sources & References',
94
+ bibliography: [
95
+ {
96
+ name: 'Federal Reserve: Interest Rates',
97
+ url: 'https://www.federalreserve.gov/',
98
+ },
99
+ {
100
+ name: 'Investopedia: Compound Interest',
101
+ url: 'https://www.investopedia.com/terms/c/compoundinterest.asp',
102
+ },
103
+ {
104
+ name: 'SEC: Understanding Interest Calculations',
105
+ url: 'https://www.sec.gov/',
106
+ },
107
+ ],
108
+ howTo: howToData,
109
+ schemas: [faqSchema, howToSchema, appSchema],
110
+ seo: [
111
+ {
112
+ type: 'title',
113
+ text: 'Late Interest and Legal Interest Calculator: Complete Guide',
114
+ level: 2,
115
+ },
116
+ {
117
+ type: 'paragraph',
118
+ html: 'In Spain\'s complex legal and fiscal framework, time does not pass freely on a debt. <strong>Late interest</strong> and <strong>legal interest on money</strong> are the mechanisms the law uses to compensate for damage caused by failure to meet a financial obligation within the deadline. Whether it is a debt with the tax authority, non-payment between businesses, or a legal claim, understanding how these interests accrue is essential.',
119
+ },
120
+ {
121
+ type: 'title',
122
+ text: 'What is Legal Interest on Money?',
123
+ level: 3,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: 'Legal interest on money is the surcharge applied to a debt when the parties have not agreed on a specific interest rate or when the law determines it. For the years <strong>2024, 2025, and 2026</strong>, this rate has remained stable at <strong>3.25%</strong>. This percentage serves as the basis for numerous legal calculations.',
128
+ },
129
+ {
130
+ type: 'title',
131
+ text: 'Tax Late Interest (Revenue Authority)',
132
+ level: 3,
133
+ },
134
+ {
135
+ type: 'paragraph',
136
+ html: 'When the debt is with the Government, <strong>tax late interest</strong> is higher than legal interest to discourage delays in tax payments. For the period <strong>2024-2026</strong>, it has been set at <strong>4.0625%</strong>. This is the surcharge that the tax authority will charge you if you file a self-assessment outside the deadline.',
137
+ },
138
+ {
139
+ type: 'tip',
140
+ title: 'Compensatory Nature, Not Punitive',
141
+ html: '<p><strong>Key point:</strong> Unlike fines, late interest has a compensatory nature, not punitive. The tax authority does not "punish" you with them, but charges you for the time you have had money that should have been in public coffers.</p>',
142
+ },
143
+ {
144
+ type: 'title',
145
+ text: 'How to Calculate Interest Step by Step',
146
+ level: 3,
147
+ },
148
+ {
149
+ type: 'paragraph',
150
+ html: 'The calculation of these interests follows a simple interest formula, where time is counted in calendar days: <strong>Interest = (Principal × Days × Interest Rate) / 36,500</strong>',
151
+ },
152
+ {
153
+ type: 'list',
154
+ items: [
155
+ '<strong>Principal:</strong> The total amount of the original debt.',
156
+ '<strong>Days:</strong> The number of days elapsed from the day after the due date until the day of actual payment.',
157
+ '<strong>Interest Rate:</strong> The applicable annual percentage (e.g., 3.25 or 4.0625).',
158
+ '<strong>36,500:</strong> The divisor factor to convert the annual percentage to daily (365 days x 100).',
159
+ ],
160
+ },
161
+ {
162
+ type: 'card',
163
+ icon: 'mdi:calculator',
164
+ title: 'Practical Example: Tax Authority Debt',
165
+ html: '<p>Imagine you owe €5,000 from an income tax return that was due 180 days ago:</p><ul><li>Interest applicable (Late): 4.0625%</li><li>Calculation: (5,000 × 180 × 4.0625) / 36,500</li><li><strong>Resulting interest:</strong> €100.17</li><li>Total to pay: €5,100.17</li></ul>',
166
+ },
167
+ {
168
+ type: 'title',
169
+ text: 'Differences According to Debt Type',
170
+ level: 3,
171
+ },
172
+ {
173
+ type: 'list',
174
+ items: [
175
+ '<strong>Civil Debts:</strong> Between individuals, 3.25% (legal) applies.',
176
+ '<strong>Commercial Debts:</strong> Governed by the Late Payment Law, reaching 10.15% - 11.15% in 2025-2026.',
177
+ '<strong>Social Security Debts:</strong> Apply 4.0625% plus surcharges of 10% to 20%.',
178
+ '<strong>Court Interest:</strong> When there is a court judgment, 5.25% from the judgment date.',
179
+ ],
180
+ },
181
+ {
182
+ type: 'title',
183
+ text: 'Interest in Commercial Operations: Beware the 60-Day Deadline!',
184
+ level: 3,
185
+ },
186
+ {
187
+ type: 'paragraph',
188
+ html: 'If you are self-employed or a company, the Late Payment Law establishes a maximum payment period of 60 days. If your customer exceeds that date, you can demand commercial late interest automatically, without needing a reminder, and also collect a fixed amount of €40 for collection costs.',
189
+ },
190
+ {
191
+ type: 'comparative',
192
+ columns: 2,
193
+ items: [
194
+ {
195
+ title: 'Simple Interest',
196
+ description: 'Calculated only on the original principal each period.',
197
+ points: [
198
+ 'Linear and predictable growth',
199
+ 'Less harmful than compound interest',
200
+ 'Common in simple contracts',
201
+ 'Formula: Principal × Rate × Time',
202
+ ],
203
+ },
204
+ {
205
+ title: 'Compound Interest',
206
+ description: 'Recalculated on principal plus accumulated interest.',
207
+ highlight: true,
208
+ points: [
209
+ 'Exponential growth',
210
+ 'More costly for the debtor',
211
+ 'Used in complex finance',
212
+ 'Interest generates more interest',
213
+ ],
214
+ },
215
+ ],
216
+ },
217
+ {
218
+ type: 'paragraph',
219
+ html: 'The exact calculation of penalty interest depends on local laws and contract terms. Different jurisdictions have maximum rate limits. Always verify your contract and consult a legal expert.',
220
+ },
221
+ ],
222
+ ui: {
223
+ labelTitle: 'Late Interest Calculator',
224
+ labelSimpleTitle: 'Simple',
225
+ labelCompoundTitle: 'Compound',
226
+ labelMonthlyTitle: 'Monthly',
227
+ labelSimpleQuestion: 'Calculate with simple interest',
228
+ labelCompoundQuestion: 'Calculate with compound interest',
229
+ labelMonthlyQuestion: 'Calculate with monthly periods',
230
+ labelPrincipal: 'Original Amount',
231
+ labelAnnualRate: 'Annual Rate',
232
+ labelDays: 'Days Overdue',
233
+ labelMonths: 'Months Overdue',
234
+ labelMonthlyRate: 'Monthly Rate',
235
+ labelDailyInterest: 'Daily Interest',
236
+ labelTotalInterest: 'Total Interest',
237
+ labelTotalAmount: 'Total Amount Due',
238
+ labelEffectiveRate: 'Effective Rate',
239
+ labelCopyTooltip: 'Copy result',
240
+ currencySymbol: '$',
241
+ percentSymbol: '%',
242
+ labelFormula: 'Formula applied',
243
+ reportTitle: 'LATE INTEREST CALCULATION REPORT',
244
+ reportLabelPrincipal: 'Principal',
245
+ reportLabelType: 'Type',
246
+ reportLabelPeriod: 'Period',
247
+ reportLabelDays: 'Days elapsed',
248
+ reportLabelInterest: 'ACCRUED INTEREST',
249
+ reportLabelTotal: 'TOTAL DUE',
250
+ reportDaysSuffix: 'days',
251
+ formulaDescription: 'This calculation uses current rates. If the period spans previous years with different rates, the actual calculation should be divided by periods.',
252
+ currencyCode: 'USD',
253
+ currencyLocale: 'en-US',
254
+ },
255
+ };
@@ -0,0 +1,224 @@
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { LateInterestUI } from '../ui';
4
+
5
+ const slug = 'intereses-demora';
6
+ const title = 'Calculadora de Intereses de Demora y Legales España 2026';
7
+ const description =
8
+ 'Calcula intereses de demora tributarios (Hacienda) y legales por impagos. Simulador actualizado para 2025 y 2026 basado en la Ley de Presupuestos.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'Qué es un interés por demora o moratorio?',
13
+ answer:
14
+ 'Es el interés que se cobra sobre una cantidad no pagada en el plazo establecido. Se aplica sobre la deuda original y se acumula hasta que se realice el pago completo.',
15
+ },
16
+ {
17
+ question: 'Cuál es la diferencia entre interés simple y compuesto?',
18
+ answer:
19
+ 'El interés simple se calcula solo sobre el capital original cada día. El compuesto se calcula sobre el capital más los intereses acumulados, generando un crecimiento más rápido de la deuda.',
20
+ },
21
+ {
22
+ question: 'Cómo se calcula el interés diario?',
23
+ answer:
24
+ 'Se divide la tasa anual entre 365 días y se aplica al capital original. Por ejemplo, 10% anual = 0,0274% diario.',
25
+ },
26
+ {
27
+ question: 'Qué tasa de interés por demora debo aplicar?',
28
+ answer:
29
+ 'Depende de la legislación local y los términos del contrato. En España, la Ley de Morosidad establece tasas máximas. Consulta con un asesor legal para tu caso específico.',
30
+ },
31
+ {
32
+ question: 'Puedo usar esta calculadora para deudas legales?',
33
+ answer:
34
+ 'Esta es una herramienta informativa. Para deudas reales, verifica los términos contractuales y la legislación local. Consulta con un abogado si tienes dudas.',
35
+ },
36
+ ];
37
+
38
+ const howToData = [
39
+ {
40
+ name: 'Elige el tipo de cálculo',
41
+ text: 'Selecciona entre interés simple, compuesto o mensual según tu situación.',
42
+ },
43
+ {
44
+ name: 'Introduce los datos',
45
+ text: 'Ingresa el monto original, la tasa de interés y el período de demora.',
46
+ },
47
+ {
48
+ name: 'Obtén el resultado',
49
+ text: 'La calculadora muestra el interés diario acumulado, total generado, monto final y tasa efectiva.',
50
+ },
51
+ ];
52
+
53
+ const faqSchema: WithContext<FAQPage> = {
54
+ '@context': 'https://schema.org',
55
+ '@type': 'FAQPage',
56
+ mainEntity: faqData.map((item) => ({
57
+ '@type': 'Question',
58
+ name: item.question,
59
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
60
+ })),
61
+ };
62
+
63
+ const howToSchema: WithContext<HowTo> = {
64
+ '@context': 'https://schema.org',
65
+ '@type': 'HowTo',
66
+ name: title,
67
+ description,
68
+ step: howToData.map((step, i) => ({
69
+ '@type': 'HowToStep',
70
+ position: i + 1,
71
+ name: step.name,
72
+ text: step.text,
73
+ })),
74
+ };
75
+
76
+ const appSchema: WithContext<SoftwareApplication> = {
77
+ '@context': 'https://schema.org',
78
+ '@type': 'SoftwareApplication',
79
+ name: title,
80
+ description,
81
+ applicationCategory: 'FinanceApplication',
82
+ operatingSystem: 'All',
83
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
84
+ inLanguage: 'es',
85
+ };
86
+
87
+ export const content: ToolLocaleContent<LateInterestUI> = {
88
+ slug,
89
+ title,
90
+ description,
91
+ faqTitle: 'Preguntas Frecuentes',
92
+ faq: faqData,
93
+ bibliographyTitle: 'Fuentes y Referencias',
94
+ bibliography: [
95
+ {
96
+ name: 'Ley 3/2004 de Lucha contra la Morosidad',
97
+ url: 'https://www.boe.es/',
98
+ },
99
+ {
100
+ name: 'Banco de España: Tipos de Interés',
101
+ url: 'https://www.bde.es/',
102
+ },
103
+ {
104
+ name: 'Cálculo de Intereses Compuestos',
105
+ url: 'https://www.investopedia.com/terms/c/compoundinterest.asp',
106
+ },
107
+ ],
108
+ howTo: howToData,
109
+ schemas: [faqSchema, howToSchema, appSchema],
110
+ seo: [
111
+ {
112
+ type: 'title',
113
+ text: 'Calculadora de Intereses de Demora y Legales: Guía Completa',
114
+ level: 2,
115
+ },
116
+ {
117
+ type: 'paragraph',
118
+ html: 'En el complejo entramado legal y fiscal de España, el transcurso del tiempo ante una deuda no es gratuito. El <strong>interés de demora</strong> y el <strong>interés legal del dinero</strong> son los mecanismos que la ley utiliza para compensar el perjuicio causado por el retraso en el cumplimiento de una obligación dineraria. Ya sea una deuda con <strong>Hacienda</strong>, un impago entre empresas o una reclamación judicial, entender cómo se devengan estos intereses es fundamental.',
119
+ },
120
+ {
121
+ type: 'title',
122
+ text: '¿Qué es el Interés Legal del Dinero?',
123
+ level: 3,
124
+ },
125
+ {
126
+ type: 'paragraph',
127
+ html: 'El interés legal del dinero es el recargo que se aplica a una deuda cuando las partes no han pactado un interés específico o cuando la ley así lo determina. Para los años <strong>2024, 2025 y 2026</strong>, este tipo se ha mantenido estable en el <strong>3,25%</strong>. Este porcentaje sirve como base para multitud de cálculos legales.',
128
+ },
129
+ {
130
+ type: 'title',
131
+ text: 'El Interés de Demora Tributario (Hacienda)',
132
+ level: 3,
133
+ },
134
+ {
135
+ type: 'paragraph',
136
+ html: 'Cuando la deuda es con la Administración Pública, el <strong>interés de demora tributario</strong> es superior al interés legal para desincentivar el retraso en el pago de impuestos. Para el periodo <strong>2024-2026</strong>, se ha fijado en el <strong>4,0625%</strong>. Este es el recargo que Hacienda te cobrará si presentas una autoliquidación fuera de plazo.',
137
+ },
138
+ {
139
+ type: 'tip',
140
+ title: 'Carácter Indemnizatorio, no Punitivo',
141
+ html: '<p><strong>Dato clave:</strong> A diferencia de las sanciones, los intereses de demora tienen carácter indemnizatorio, no punitivo. Hacienda no te "castiga" con ellos, sino que te cobra por el tiempo que has dispuesto de un dinero que debería estar en las arcas públicas.</p>',
142
+ },
143
+ {
144
+ type: 'title',
145
+ text: 'Cómo Calcular los Intereses Paso a Paso',
146
+ level: 3,
147
+ },
148
+ {
149
+ type: 'paragraph',
150
+ html: 'El cálculo de estos intereses sigue una fórmula de interés simple, donde el tiempo se cuenta por días naturales: <strong>Intereses = (Principal × Días × Tipo de Interés) / 36.500</strong>',
151
+ },
152
+ {
153
+ type: 'list',
154
+ items: [
155
+ '<strong>Principal:</strong> La cantidad total de la deuda original.',
156
+ '<strong>Días:</strong> El número de días transcurridos desde el día siguiente al vencimiento hasta el día del pago efectivo.',
157
+ '<strong>Tipo de Interés:</strong> El porcentaje anual aplicable (Ej: 3,25 o 4,0625).',
158
+ '<strong>36.500:</strong> El factor divisor para convertir el porcentaje anual en diario (365 días x 100).',
159
+ ],
160
+ },
161
+ {
162
+ type: 'card',
163
+ icon: 'mdi:calculator',
164
+ title: 'Ejemplo Práctico: Deuda con Hacienda',
165
+ html: '<p>Imagina que debes 5.000 € de una declaración de IRPF que venció hace 180 días:</p><ul><li>Interés aplicable (Demora): 4,0625%</li><li>Cálculo: (5.000 × 180 × 4,0625) / 36.500</li><li><strong>Intereses resultantes:</strong> 100,17 €</li><li>Total a pagar: 5.100,17 €</li></ul>',
166
+ },
167
+ {
168
+ type: 'title',
169
+ text: 'Diferencias Según el Tipo de Deuda',
170
+ level: 3,
171
+ },
172
+ {
173
+ type: 'list',
174
+ items: [
175
+ '<strong>Deudas Civiles:</strong> Entre particulares, se aplica el 3,25% (legal).',
176
+ '<strong>Deudas Mercantiles:</strong> Se rigen por la Ley de Lucha contra la Morosidad, alcanzando el 10,15% - 11,15% en 2025-2026.',
177
+ '<strong>Deudas con la Seguridad Social:</strong> Aplican el 4,0625% más recargos del 10% al 20%.',
178
+ '<strong>Intereses Procesales:</strong> Cuando hay sentencia judicial, el 5,25% desde la fecha de sentencia.',
179
+ ],
180
+ },
181
+ {
182
+ type: 'title',
183
+ text: 'Intereses en Operaciones Comerciales: ¡Cuidado con los 60 Días!',
184
+ level: 3,
185
+ },
186
+ {
187
+ type: 'paragraph',
188
+ html: 'Si eres autónomo o empresa, la Ley 3/2004 establece un plazo máximo de pago de 60 días. Si tu cliente se pasa de esa fecha, puedes exigir el interés de demora comercial de forma automática, sin necesidad de recordatorio, y además cobrar una cantidad fija de 40 € por costes de cobro.',
189
+ },
190
+ ],
191
+ ui: {
192
+ labelTitle: 'Calculadora de Intereses de Demora',
193
+ labelSimpleTitle: 'Simple',
194
+ labelCompoundTitle: 'Compuesto',
195
+ labelMonthlyTitle: 'Mensual',
196
+ labelSimpleQuestion: 'Calcular con interés simple',
197
+ labelCompoundQuestion: 'Calcular con interés compuesto',
198
+ labelMonthlyQuestion: 'Calcular con períodos mensuales',
199
+ labelPrincipal: 'Monto Original',
200
+ labelAnnualRate: 'Tasa Anual',
201
+ labelDays: 'Días de Retraso',
202
+ labelMonths: 'Meses de Retraso',
203
+ labelMonthlyRate: 'Tasa Mensual',
204
+ labelDailyInterest: 'Interés Diario',
205
+ labelTotalInterest: 'Interés Total',
206
+ labelTotalAmount: 'Monto Total a Pagar',
207
+ labelEffectiveRate: 'Tasa Efectiva',
208
+ labelCopyTooltip: 'Copiar resultado',
209
+ currencySymbol: '€',
210
+ percentSymbol: '%',
211
+ labelFormula: 'Fórmula aplicada',
212
+ reportTitle: 'INFORME DE CÁLCULO DE INTERESES',
213
+ reportLabelPrincipal: 'Principal',
214
+ reportLabelType: 'Tipo',
215
+ reportLabelPeriod: 'Período',
216
+ reportLabelDays: 'Días transcurridos',
217
+ reportLabelInterest: 'INTERESES DEVENGADOS',
218
+ reportLabelTotal: 'TOTAL A LIQUIDAR',
219
+ reportDaysSuffix: 'días',
220
+ formulaDescription: 'Este cálculo utiliza los tipos vigentes. Si el periodo abarca años anteriores con diferentes tipos, el cálculo real debería ser fraccionado por periodos.',
221
+ currencyCode: 'EUR',
222
+ currencyLocale: 'es-ES',
223
+ },
224
+ };