Critique of Judgement by Immanuel Kant Chapter 87 Page 10

formal and command unconditionally without respect to purposes (as the matter of volition). But the one requisite of the final purpose, as practical Reason prescribes it to beings of the world, is an irresistible purpose imposed on them by their nature (as finite beings), which Reason wishes to know as subject only to the moral law as inviolable condition, or even as universally set up in accordance with it. Thus Reason takes for final purpose the furthering of happiness in harmony with morality. To further this so far as is in our power (i.e. in respect of happiness) is commanded us by the moral law; be the issue of this endeavour what it may.

The fulfilling of duty consists in the form of the earnest will, not in the intermediate causes of success.