Hi and welcome to the forum

This sounds fairly easy, using 3 nested IF()'s maybe, with your data in A1, something like...
=A1*0.8+IF(A1>10,(A1-10)*0.95,IF(A1>15,(A1-15)*0.95,0))