diff --git a/MekHQ/src/mekhq/campaign/Campaign.java b/MekHQ/src/mekhq/campaign/Campaign.java index a610f94fe1..6f104951d8 100644 --- a/MekHQ/src/mekhq/campaign/Campaign.java +++ b/MekHQ/src/mekhq/campaign/Campaign.java @@ -3370,7 +3370,7 @@ public void refit(Refit theRefit) { theRefit.addTimeSpent(tech.getMinutesLeft()); tech.setMinutesLeft(0); report = report + ", " + theRefit.getTimeLeft() + " minutes left. Completion "; - int daysLeft = (int) Math.ceil(theRefit.getTimeLeft() / tech.getDailyAvailableTechTime()) + 1; + int daysLeft = (int) Math.ceil((double) theRefit.getTimeLeft() / (double) tech.getDailyAvailableTechTime()); if (daysLeft == 1) { report += " tomorrow."; } else { @@ -3411,7 +3411,7 @@ public void refit(Refit theRefit) { if (!theRefit.isBeingRefurbished()) { refit(theRefit); report += " Completion "; - int daysLeft = (int) Math.ceil(theRefit.getTimeLeft() / tech.getDailyAvailableTechTime()) + 1; + int daysLeft = (int) Math.ceil((double) theRefit.getTimeLeft() / (double) tech.getDailyAvailableTechTime()); if (daysLeft == 1) { report += " tomorrow."; } else { @@ -3553,7 +3553,7 @@ public String fixPart(IPartWork partWork, Person tech) { report += " minutes left. Work"; if ((minutesUsed > 0) && (tech.getDailyAvailableTechTime() > 0)) { report += " will be finished "; - int daysLeft = (int) Math.ceil(partWork.getTimeLeft() / tech.getDailyAvailableTechTime()) + 1; + int daysLeft = (int) Math.ceil((double) partWork.getTimeLeft() / (double)tech.getDailyAvailableTechTime()); if (daysLeft == 1) { report += " tomorrow."; } else {