Hello,
This is called in french
une règle de Trois ( rule of three)
For a time of in hour----------------->you earn in $
6.8--------------------------------------->255
1----------------------------------------->255/6.8
28.4------------------------------------->255/6.8 * 28.4=1065 ($)