• Resolved masterez

    (@masterez)


    Hello,

    I need the following calculation on my WordPress website:
    (Current date – specific date)*specific number -> output in percent

    How to do that?

    Thank you in advance.

    Best regards,
    Ismar

Viewing 4 replies - 1 through 4 (of 4 total)
  • – where does the ‘specific date’ come from?
    – do you need that for the front page, or for each post?
    – where does the ‘specific number’ come from?
    – ‘percent’ of what?

    Thread Starter masterez

    (@masterez)

    Hello,

    thank you for your answer.

    – The specific date comes from my input.
    – I need it for several pages.
    – Specific number comes also from my input.
    – Output should be a simple number. With percentage I meant the sign after the number.

    I hope you can help me.

    Best regards,
    Ismar

    Thread Starter masterez

    (@masterez)

    Specifically, the aim is to calculate the return on investment.
    In the above example, after 10 days 10% of the initial investment is paid back (at 1% daily interest).

    Thread Starter masterez

    (@masterez)

    I found a plugin for this. You can find it here https://github.com/pixolin/cdroi

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Date calculation’ is closed to new replies.