# Midijob Rechner 2026 - Next Steps & Testing Guide

**Last Updated:** 2026-01-07  
**Status:** Code Updates Complete ✅ | Testing Required ⚠️

## Quick Verification Checklist

### ✅ Code Updates Complete

- [x] F-Factor: 0.6683 → 0.6619
- [x] Zusatzbeitrag: 2.5% → 2.9%
- [x] Pflegeversicherung Sachsen rates updated
- [x] Tax formula updated to 2026 §32a EStG
- [x] All "2025" → "2026" references updated
- [x] All F-Factor displays updated (0.6683 → 0.6619)
- [x] PDF/CSV exports updated
- [x] Schema updated
- [x] Documentation updated
- [x] Minified files regenerated
- [x] No linting errors

## Required Testing Steps

### 1. Calculation Verification Tests

**Test Case 1: Minimum Midijob (€603.01)**
```
Input: €603.01, Steuerklasse 1, keine Kinder
Expected: 
- Beitragspflichtiges Entgelt: €603.01 × 0.6619 ≈ €399.00
- Sozialversicherung: Reduced (calculated on €399.00)
- Lohnsteuer: €0 (under Grundfreibetrag)
- Netto: Should be > €500
```

**Test Case 2: Typical Midijob (€1,200)**
```
Input: €1,200, Steuerklasse 1, keine Kinder
Expected:
- Beitragspflichtiges Entgelt: €1,200 × 0.6619 ≈ €794.28
- Sozialversicherung: Reduced (calculated on €794.28)
- Lohnsteuer: Low or €0 (depending on tax class)
- Netto: Should be > €900
```

**Test Case 3: Maximum Midijob (€2,000)**
```
Input: €2,000, Steuerklasse 1, keine Kinder
Expected:
- Beitragspflichtiges Entgelt: €2,000 × 0.6619 ≈ €1,323.80
- Sozialversicherung: Reduced (calculated on €1,323.80)
- Lohnsteuer: Higher (due to higher income)
- Netto: Should be > €1,200
```

**Test Case 4: Boundary Test (€2,001)**
```
Input: €2,001
Expected: Error message (above Midijob range)
```

### 2. Tax Class Testing

Test each tax class with €1,500 brutto:

- **Steuerklasse 1:** Single, no children
- **Steuerklasse 2:** Single parent, 1 child
- **Steuerklasse 3:** Married, main earner
- **Steuerklasse 4:** Married, equal earners
- **Steuerklasse 5:** Married, lower earner
- **Steuerklasse 6:** Second job/Rentner

**Expected:** Tax amounts should decrease from SK1 → SK3 → SK4 → SK2 → SK5 → SK6

### 3. Pflegeversicherung Testing

**Test Case A: With Children**
```
Input: €1,500, 1 child, any Bundesland
Expected: 3.6% total (1.8% employee, 1.8% employer)
```

**Test Case B: Childless 23+ (Normal Bundesland)**
```
Input: €1,500, 0 children, age 25, DE-NW
Expected: 4.2% total (2.1% employee, 1.8% employer)
```

**Test Case C: Childless 23+ (Sachsen)**
```
Input: €1,500, 0 children, age 25, DE-SN
Expected: 4.2% total (2.9% employee, 1.3% employer)
```

**Test Case D: Under 23 (No Surcharge)**
```
Input: €1,500, 0 children, age 22
Expected: 3.6% total (1.8% employee, 1.8% employer)
```

### 4. F-Factor Verification

**Manual Calculation Check:**
```
For €1,500 brutto:
- F-Factor: 0.6619
- Beitragspflichtiges Entgelt: €1,500 × 0.6619 = €992.85
- Verify calculator shows €992.85 (or very close)
```

### 5. Export Testing

**PDF Export:**
1. Calculate with €1,500, SK1
2. Click "PDF exportieren"
3. Verify PDF shows:
   - "Midijob-Berechnung 2026"
   - F-Factor: 0,6619
   - All values match calculator display
   - No "2025" references

**CSV Export:**
1. Calculate with €1,500, SK1
2. Click "CSV exportieren"
3. Verify CSV shows:
   - "Midijob-Berechnung 2026"
   - F-Faktor 2026: 0,6619
   - All values match calculator display

### 6. Schema Validation

**Google Rich Results Test:**
1. Visit: https://search.google.com/test/rich-results
2. Enter URL: `https://www.ordio.com/tools/midijob-rechner`
3. Verify:
   - FAQPage schema validates
   - HowTo schema validates
   - WebApplication schema validates
   - All schemas show 2026 values

### 7. Cross-Browser Testing

**Chrome (Desktop):**
- [ ] Page loads correctly
- [ ] Calculator works
- [ ] Results display correctly
- [ ] Exports work

**Firefox (Desktop):**
- [ ] Page loads correctly
- [ ] Calculator works
- [ ] Results display correctly
- [ ] Exports work

**Mobile (Chrome/Safari):**
- [ ] Page responsive
- [ ] Calculator usable on mobile
- [ ] Results display correctly
- [ ] Touch interactions work

## Verification Commands

### Check for Remaining Old Values

```bash
# Check for old F-Factor
grep -r "0\.6683" v2/js/tools-midijob-calculator.js v2/pages/tools_midijob_rechner.php

# Check for old Zusatzbeitrag defaults
grep -r "zusatzbeitrag.*2\.5[^%]" v2/js/tools-midijob-calculator.js v2/pages/tools_midijob_rechner.php

# Check for 2025 references
grep -r "2025" v2/pages/tools_midijob_rechner.php | grep -v "was.*2025\|from.*2025\|updated.*2025"
```

### Verify Minified Files

```bash
# Check minified file was updated
ls -lh v2/js/tools-midijob-calculator.min.js

# Verify minified file contains new F-Factor
grep -o "0\.6619" v2/js/tools-midijob-calculator.min.js | head -1
```

## Expected Results Summary

### Key Calculation Changes

Due to F-Factor change (0.6683 → 0.6619):

- **Lower beitragspflichtiges Entgelt** for same brutto
- **Lower social security contributions** (calculated on reduced base)
- **Higher netto** (less deductions)

**Example Impact (€1,500 brutto):**
- Old F-Factor: €1,500 × 0.6683 = €1,002.45
- New F-Factor: €1,500 × 0.6619 = €992.85
- Difference: €9.60 less contribution base
- Net impact: ~€3-4 higher netto (depending on tax class)

### Zusatzbeitrag Impact

Due to Zusatzbeitrag change (2.5% → 2.9%):

- **Higher Krankenversicherung** contributions
- **Slightly lower netto** (~€0.60 per €1,000 brutto)

## Deployment Checklist

Before deploying to production:

- [ ] All manual tests completed
- [ ] Schema validation passed
- [ ] Cross-browser testing completed
- [ ] Export functionality verified
- [ ] No console errors in browser
- [ ] Mobile responsiveness verified
- [ ] Performance acceptable (LCP < 2.5s)

## Monitoring After Deployment

Monitor for:

1. **User Feedback:** Any reports of incorrect calculations
2. **Error Logs:** Check for JavaScript errors
3. **Analytics:** Monitor tool usage patterns
4. **Export Downloads:** Verify export functionality works
5. **Schema Validation:** Periodic checks with Google Rich Results Test

## Rollback Plan

If issues are discovered:

1. **Immediate:** Revert to previous version
2. **Investigation:** Check calculation logic
3. **Fix:** Update incorrect values
4. **Re-test:** Verify fixes
5. **Re-deploy:** Deploy corrected version

## Support Resources

- **Research Documentation:** `docs/guides/tools-pages/FINAL_2026_RESEARCH_REPORT.md`
- **Analysis Documentation:** `docs/guides/tools-pages/TOOL_BY_TOOL_ANALYSIS.md`
- **Update Summary:** `docs/guides/tools-pages/MIDIJOB_RECHNER_2026_UPDATE_SUMMARY.md`
- **Official Sources:**
  - Haufe.de: Gleitzone 2026
  - Aktuar-Korts.de: F-Factor calculation
  - BMF: Tax formula §32a EStG

## Conclusion

All code updates are complete and verified. The calculator is ready for manual testing and deployment. Follow the testing steps above to ensure everything works correctly before going live.

**Next Action:** Perform manual browser testing as outlined above.
