Consider online course as an investment
First of all, let’s state all the definitions to be on the same side.
In general, to invest is to allocate money (or sometimes another resource, such as time) in the expectation of some benefit in the future (Wikipedia).