Key Features of the Code
- Input Fields:
- Due Date
- Last Period Date
- Ultrasound Date
- Conception Date
- IVF Transfer Date
- Calculation Logic:
- The calculator uses the provided date to estimate the due date and pregnancy milestones.
- If multiple dates are provided, the due date is calculated based on the first valid input.
- Pregnancy Milestones:
- First Trimester End: 12 weeks
- Second Trimester End: 28 weeks
- Third Trimester Start: 28 weeks
- Key Milestones: Anatomy Scan (Week 20), Viability Milestone (Week 24), Full-Term Preparation (Week 36)
- Styling:
- Gradient background and rounded corners for a modern look.
- Clear labels and input fields for ease of use.
How to Use the Calculator
- Enter at least one of the following dates:
- Due Date
- Last Period Date
- Ultrasound Date
- Conception Date
- IVF Transfer Date
- Click the Calculate button.
- The result will display:
- Estimated Due Date
- First Trimester End
- Second Trimester End
- Third Trimester Start
- Key Milestones