public static String timeUntil(Long sec) {
        if (sec < 120L) {
            Integer buf = Math.round((float) sec);
            return buf + " second" + (buf == 1 ? "" : "s");
        }
        if (sec < 7200L) {
            Integer buf = Math.round((float) (sec / 60L));
            return buf + " minute" + (buf == 1 ? "" : "s");
        }
        if (sec < 172800L) {
            Integer buf = Math.round((float) (sec / 3600L));
            return buf + " hour" + (buf == 1 ? "" : "s");
        }
        Integer buf = Math.round((float) (sec / 86400L));
        return buf + " day" + (buf == 1 ? "" : "s");
    }