code: private static int getPixelOffsetFromMinutes(int minute, int workDayHeight,
                                                   int remainderHeight) {
          int y;
          if (minute < WORK_DAY_START_MINUTES) {
              y = minute * remainderHeight / WORK_DAY_START_MINUTES;
          } else if (minute < WORK_DAY_END_MINUTES) {
              y = remainderHeight + (minute - WORK_DAY_START_MINUTES) * workDayHeight
                      / WORK_DAY_MINUTES;
          } else {
              y = remainderHeight + workDayHeight + (minute - WORK_DAY_END_MINUTES) * remainderHeight
                      / WORK_DAY_END_LENGTH;
          }
          return y;
      }
docs: Compute a pixel offset from the top for a given minute from the work day
  height and the height of the top area.