I have a diagonal axis which starts at 362 and ends at -3831.

I have a horizontal axis which starts at 67 and ends at 1027.

[![enter image description here](https://i.stack.imgur.com/CuG2I.jpg)](https://i.stack.imgur.com/CuG2I.jpg)

Is there a way to create a single formula where 67 generates 362, and 1027 generates -3831

I need the formula to calculate all points in between.

I'm really struggling to find any equation that satisfies both

**Edit**

I'm looking for an equation I can convert for programming