An open API service indexing awesome lists of open source software.

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

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.