Sum of 4 cosines
Time