Let the number of days = 365
Then each day must be 2pi/365 rads
The midline is [ as before ] 12 and the amplitude here is 15. 8 - 12 = 3.3
I'm going to use the sine function here
I'm letting January 1st = "Day 0"...that is......where x = 0
Using the basic function y = 3.3sin [ (2pi* x / 365 ) ] we need to find the phase shift
Using this function.....one minimum occurs when x ≈ -91.25
And we need this minimum to occur on Dec 21st, i.e., 11 units (days) before x = 0 ( Jan 1st) ....so....the phase shift, P, can be found thusly :
-91.25 + P = -11 ⇒ P = 80.25....so.....this means that we need to shift the graph 80.25 units (days) to the right ........
So......the phase shift can be expressed as 80.25 *2 *pi / 365
So....... the [approximate] function is y = 3.3sin [ (2 pi * x / 365) - (80.25 * 2pi / 365) ] + 12
March 27th is the 86th day of the year..so x = 85 days after Jan 1st...so the hours of daylight when x = 85 are ≈ 12.27 hrs
And October 2nd is the 275th day of the year.....x = 274 days after Jan 1st....so the hours of daylight when = 274 ≈ 11.365 hrs
Here is the graph : https://www.desmos.com/calculator/kyp7tucydf