{"action":"created","issue":{"url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro/issues/310","repository_url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro","labels_url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro/issues/310/comments","events_url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro/issues/310/events","html_url":"https://github.com/strangerstudios/paid-memberships-pro/pull/310","id":144449664,"number":310,"title":"using startdate to calculate enddate","user":{"login":"tracend","id":542296,"avatar_url":"https://avatars.githubusercontent.com/u/542296?v=3","gravatar_id":"","url":"https://api.github.com/users/tracend","html_url":"https://github.com/tracend","followers_url":"https://api.github.com/users/tracend/followers","following_url":"https://api.github.com/users/tracend/following{/other_user}","gists_url":"https://api.github.com/users/tracend/gists{/gist_id}","starred_url":"https://api.github.com/users/tracend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tracend/subscriptions","organizations_url":"https://api.github.com/users/tracend/orgs","repos_url":"https://api.github.com/users/tracend/repos","events_url":"https://api.github.com/users/tracend/events{/privacy}","received_events_url":"https://api.github.com/users/tracend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-30T03:01:49Z","updated_at":"2016-04-01T16:06:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro/pulls/310","html_url":"https://github.com/strangerstudios/paid-memberships-pro/pull/310","diff_url":"https://github.com/strangerstudios/paid-memberships-pro/pull/310.diff","patch_url":"https://github.com/strangerstudios/paid-memberships-pro/pull/310.patch"},"body":"I had a problem using the plugin when the start date was in the future, so the end date that was calculated, based on the current time, appeared to be wrong. \r\n\r\nThis small fix addresses this case."},"comment":{"url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro/issues/comments/204451624","html_url":"https://github.com/strangerstudios/paid-memberships-pro/pull/310#issuecomment-204451624","issue_url":"https://api.github.com/repos/strangerstudios/paid-memberships-pro/issues/310","id":204451624,"user":{"login":"strangerstudios","id":205015,"avatar_url":"https://avatars.githubusercontent.com/u/205015?v=3","gravatar_id":"","url":"https://api.github.com/users/strangerstudios","html_url":"https://github.com/strangerstudios","followers_url":"https://api.github.com/users/strangerstudios/followers","following_url":"https://api.github.com/users/strangerstudios/following{/other_user}","gists_url":"https://api.github.com/users/strangerstudios/gists{/gist_id}","starred_url":"https://api.github.com/users/strangerstudios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strangerstudios/subscriptions","organizations_url":"https://api.github.com/users/strangerstudios/orgs","repos_url":"https://api.github.com/users/strangerstudios/repos","events_url":"https://api.github.com/users/strangerstudios/events{/privacy}","received_events_url":"https://api.github.com/users/strangerstudios/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T16:06:13Z","updated_at":"2016-04-01T16:06:13Z","body":"I added a new filter pmpro_checkout_end_date that works similar to the pmpro_checkout_start_date filter. This will go out in 1.8.9 today. There was a way to do this using the pmpro_checkout_level filter to basically change the expiration from 1 week to however many days it is until next next Monday, but this is cleaner.\r\nhttps://github.com/strangerstudios/paid-memberships-pro/commit/0ef1925b2aae67d7e11eeefd82fb73f39171221e\r\n\r\nAnd here is an example using similar to what you need I think:\r\nhttps://gist.github.com/strangerstudios/d2e1144158f840fceaba5bbbad5f01fc"}}