Sunset algorithm for Propeller

Does anyone have a relatively simple algorithm to calculate sunset time based on the date, lattitude and longitude? Something using all integer math would be ideal returning the number of minutes passed noon or midnight would be all I would need.
Comments
http://en.wikipedia.org/wiki/Sunrise_equation