How do I find day of the week for any given date?

This example shows you how to find day of the week for any given date.
package net.javaiq.examples.date;

/**
 * This class demonstrates on how to find day of the week for any given date. 
 * @author JavaIQ.net
 * Creation Date Dec 10, 2010
 */
public class DayOfTheWeekFinder {

    /**
     * This method returns the Day Of Week
     */
    public static double findDayOfTheWeek(int day, int month, int year) {
        double a = Math.floor((14 - month) / 12);
        double y = year - a;
        double m = month + 12 * a - 2;
        double d = 
            (day + y + Math.floor(/ 4) - Math.floor(/ 100) + Math.floor(/ 400) + Math.floor((31 * m) / 12)) % 
            7;
        return d + 1;
    }

    /**
     * Method to test the methods in the class with sample inputs
     * @param args
     */
    public static void main(String[] args) {
        //Here we want to find what day of the week it was on 15th July 1976
        System.out.println(findDayOfTheWeek(15, 7, 1976));
    }
}