Whats the code behind the weekday function? i need a simple fast algoritm that calculates what day it is