public static String secondsToTime(int seconds) {
        if(seconds == 0) {
            return "0 sekund";
        }
        int minutes = seconds / 60;
        seconds %= 60;
        int hours = minutes / 60;
        minutes %= 60;
        int days = hours / 24;
        hours %= 24;
        StringBuilder sb = new StringBuilder();
        if(days > 0) sb.append(days).append(" dni ");
        if(hours > 0) sb.append(hours).append(" godzin ");
        if(minutes > 0) sb.append(minutes).append(" minut ");
        if(seconds > 0) sb.append(seconds).append(" sekund");
        return sb.toString();
    }