https://github.com/robertlorenz/calculate-due-date
Java procect
https://github.com/robertlorenz/calculate-due-date
clean-code java junit unit-testing
Last synced: 8 months ago
JSON representation
Java procect
- Host: GitHub
- URL: https://github.com/robertlorenz/calculate-due-date
- Owner: RobertLorenz
- Created: 2023-09-04T21:47:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-12T11:27:58.000Z (almost 3 years ago)
- Last Synced: 2025-01-09T07:10:58.948Z (over 1 year ago)
- Topics: clean-code, java, junit, unit-testing
- Language: Java
- Homepage:
- Size: 1.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Due Date Calculator
## Overview
The Due Date Calculator is a Java-based command-line tool. This application calculates due dates and times based on user input, taking into account working hours and working days.
## Key Features
- **Submission Date and Time**: Users input the submission date and time in the format "YYYY-MM-DD HH:mm."
- **Turnaround Time**: Users specify the turnaround time in working hours.
- **Working Hours**: The calculator considers a specified range of working hours, from 9:00 AM to 5:00 PM.
- **Working Days**: It accounts for weekends (non-working days) when calculating due dates.
- **Error Handling**: The application provides clear error messages for invalid inputs or negative turnaround times.
- **Clean Java Code**: The code follows best practices for Java programming, ensuring readability and maintainability.
- **Unit Testing:** The project includes unit tests to ensure the reliability of the due date calculation.
## How to run
1. Clone the repository to your local machine.
2. Compile the Java source files.
3. Execute the `DueDateCalculator` class.
4. Enter the submission date and time, followed by the turnaround time.
5. The calculator displays the estimated due date and time, considering working hours and days.