public int Checkout() { int confCode = -1; double minutesUnused = Math.Floor((DateTime.Now - this.ScheduledCheckOutTime).TotalHours); if (minutesUnused < 0) { confCode = ProcessTransaction(createHoursArray(minutesUnused * -1), TransactionType.REFUND); } else if (minutesUnused > 10) // 10 minute grace period before additional charges { confCode = ProcessTransaction(createHoursArray(minutesUnused), TransactionType.SALE); } actualAppointmentCheckout = DateTime.Now; appointmentStation.check_out(); return(confCode); }