function p( yr ) {
	var v = yr + floor( yr/4 ) - floor( yr/100 ) + floor( yr/400 );
	return v % 7;
}
Formula for determining if a year is "long" or "short".

@private
@param {integer} yr - year
@returns {integer} result