have come to a road block and could really do with some help, so any would be appreciated and thanks before hand.

Now how to explain this

alt text

looking at this really awesome best drawing in the world how would i go about finding a value on the green line if i supply the hour and minute of the hour?

This is a strange range you want there. You are aware of the fact that the sub sections are not qually distributed? The sections all have a length of “6” but your target ranges have a length of 0.5 for the first and last and a length of 1 for the two in the middle. So this is not a linear mapping and therefore can’t be solved with a linear expression.

Though you get the result you want by doing this:

public static float Remap(float aVal)
{
aVal /= 6f;
int section = Mathf.FloorToInt(aVal);
aVal -= section; // aVal now in the range 0 - 1
if (section == 0)
return 0.5f + aVal * 0.5f;
else if (section == 3)
return aVal * 0.5f;
return aVal;
}

Are you sure you want this progression? It means the value will suddenly jump from 1 to 0 at an input value of 6, 12 and 18

float FindingValueOfTheGreenLine(float hours, float minutes)
{
minutes = (minutes + hours * 60 + 1080) % 1440;
int unit = minutes < 720 ? 360 : 720;
return minutes % unit / unit;
} @danipren my first code was a bit complicated
This function will return the correct value on the green line for your hours and minutes input