Endeavor inflicts damage equal to the amount that the target's non-Dynamax HP exceeds the user's non-Dynamax HP.
Source: https://bulbapedia.bulbagarden.net/wiki/Dynamax
Just like all other HP based effects (Like Super Fang), it deals damage based on the Non-Dynamax HP of the Target and the User.