package com.alexstyl.specialdates.events.namedays.calendar;

import com.alexstyl.specialdates.date.Date;
import com.alexstyl.specialdates.date.MonthInt;

public enum OrthodoxEasterCalculator {
    INSTANCE;

    /**
     * Calculates the date of the easter Sunday for the given year
     */
    @SuppressWarnings({"MagicNumber"})
    public Date calculateEasterForYear(int year) {
        int a = year % 4;
        int b = year % 7;
        int c = year % 19;
        int d = (19 * c + 15) % 30;
        int e = (2 * a + 4 * b - d + 34) % 7;
        @MonthInt int month = (int) Math.floor((d + e + 114) / 31);
        int day = ((d + e + 144) % 31) + 1;
        day++;
        return Date.Companion.on(day, month, year)
                .addDay(13);
    }
}

@@ -276,16 +276,114 @@
 en year%0A
+     *%0A     * @see %3Ca href=%22https://en.wikipedia.org/wiki/Computus%22%3EComputus on Wikipedia.com%3C/a%3E%0A
      */%0A
@@ -667,25 +667,8 @@
 h = 
-(int) Math.floor(
 (d +
@@ -681,17 +681,16 @@
 14) / 31
-)
 ;%0A      
@@ -796,25 +796,8 @@
 ear)
-%0A                
 .add

Remove obsolete casting