Atlassian | P40 | Software Engineer 2
Anonymous User
3098

Imagine you’re working on payments team. Customer subscribes to Products and is interested in exploring how much it’ll cost them to keep using the product for the rest of the year.

Your task is to develop a Cost Explorer that calculates the total cost a customer has to pay in a unit year. This means that at any day of the year they should be able to get a provisional report giving monthly/yearly cost estimates.

Cost Explorer should be able to provide a report of -

  1. Monthly cost (Generate a bill for each month, including bill amount for future months for the unit year) -
  2. Yearly cost estimates (for the unit year)

// Atlassian pricing plans -
[
{BASIC, 9.99},
{STANDARD, 49.99},
{PREMIUM, 249.99}
]

// Customer subscription information
Customer -> C1
Product ->
Name -> Jira
Subscription -> [ "BASIC", "2022-01-01”, "2022-03-31", "PREMIUM" ] // {planId, startDate, endDate, newPlan}

I was able to solve only half the question of this (Monthly subscription I was able to complete it). Are there any chances of getting selected for the next round?

Comments (7)