<p>Given two numbers, <code>hour</code> and <code>minutes</code>, return <em>the smaller angle (in degrees) formed between the </em><code>hour</code><em> and the </em><code>minute</code><em> hand</em>.</p>

<p>Answers within <code>10<sup>-5</sup></code> of the actual value will be accepted as correct.</p>

<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>
<img alt="" src="https://assets.leetcode.com/uploads/2019/12/26/sample_1_1673.png" style="width: 300px; height: 296px;" />
<pre>
<strong>Input:</strong> hour = 12, minutes = 30
<strong>Output:</strong> 165
</pre>

<p><strong class="example">Example 2:</strong></p>
<img alt="" src="https://assets.leetcode.com/uploads/2019/12/26/sample_2_1673.png" style="width: 300px; height: 301px;" />
<pre>
<strong>Input:</strong> hour = 3, minutes = 30
<strong>Output:</strong> 75
</pre>

<p><strong class="example">Example 3:</strong></p>
<img alt="" src="https://assets.leetcode.com/uploads/2019/12/26/sample_3_1673.png" style="width: 300px; height: 301px;" />
<pre>
<strong>Input:</strong> hour = 3, minutes = 15
<strong>Output:</strong> 7.5
</pre>

<p>&nbsp;</p>
<p><strong>Constraints:</strong></p>

<ul>
	<li><code>1 &lt;= hour &lt;= 12</code></li>
	<li><code>0 &lt;= minutes &lt;= 59</code></li>
</ul>

class Solution:
    def angleClock(self, hour: int, minutes: int) -> float:

        # 360 degrees
        # 60 minutes = 360 degrees
        # 6 degrees/minute
        #360/12 = 30 = 30 degrees / hour
        #30 degrees / hours / 60 = 0.5 degrees per minute
        # 5.5 x 30 = 165
        # 15/60 = 0.25
        # 30/4 = 7.5
        #Create a map mapping minutes by the 5 minutes to each hour in the clock EX: {12:0, 1:5, 10:2 etc..}
        #Take that hour value and compare with the hour given to me
        # 3 = hours 29 = minutes
        #define increments
        #while map[hours] < minutes:
            #Inncrement my hours, increments+=1

            # 30 degrees/hour / 60 hour/minute

        #30 !< 30
        #hours > minutes
        #map[hours] = 30 and minutes = 30
        #30-29 = 1, use that 1 in calcualtion (increements - (incremeents/12))* 30 + (leftover minutes) * 0.25  = claculation
        #return min (360-claculation, claculation)

        hourhand_adjustment = minutes/60
        hour_degrees = ((hour%12 + hourhand_adjustment) * 30)
        minutes_degrees = minutes * 6
        complement = abs(hour_degrees- minutes_degrees)
        res = min(complement, 360-complement)
        return res

        # (3-0.5) * 30



        # 0.5 + (4/60) * 30
        # .15 + 30 = 
        # 6 + (4/60) * 30
        # 0.15 &


        # (hour-180) - (degrees-180) = hours -180 - degrees + 180 = hours - degrees
40