Assuming the coordinate is a decimal number. You can use this equation.
function midpoint(lat1, long1, lat2, long2, per) { return [lat1 + (lat2 - lat1) * per, long1 + (long2 - long1) * per]; }
Returns the new desired coordinate [lat, long] depending on the percentage (for example, for = 0.2 for 20%).
source share