Swedish rounding in invoices - rounding

I'm designing a invoice feature for my web app, and i'm introduced to issue of rounding up numbers for certain countries like Sweden, Switzerland, New Zealand.
The thing that confuses me is that i'm not sure if is should round up the total invoice amount or total amount of every invoice line.
Thanks.

Related

Assign specific dates based to an employee level dataset on weighted averages in excel

I have a dataset in excel which shows headcount by employee level and which department each employee would fall under (sales, ops, or support). I would like to send a survey to each employee once every 26 weeks (2 times a year), but I would also like to keep sending surveys every week to ensure continuation of surveys to a certain amount of population split between sales, ops, and support departments based on their weight of the total population.
This way, I am sending surveys every week to a tiny bit of my overall headcount but only repeating people every 26 weeks.
Can anyone please help on how to solve this in excel with a formula?
From attached sample data, how can I split the headcount to send surverys for 26 weeks straight but to different population every week and not repeat? This different population should be split by % of department out of total headcount. Meaning if I have 10 people every week and % split is 40% sales, 30% operations, and 20% support, the survey should be sent to 4 sales, 3 operations, and 2 support people. Please note that the 10 people and the %s may vary every week because of new hires and resignations.
Thank you!
Sample Data
In the data sheet, ceate a helper column D, where you hand out the numbers to each employee, label it MOD. Use the formula for each employee, enter to cell D2:
=MOD(ROWS(A$2:A2)-1;$H$2)+1
That way each employee is assign a number from 1 to whatever is in the cell H2, e.g. 26. Then contact list all employees with 1 and you have the first batch and so you continue each week to get to employees with 26 in 26 weeks. This way all get the survey but just once.
Of course the share of the individual depts cannot be achieved each time, as there are less employees in some. If you wanted to keeps the shares, some employees of the smaller departments would get the survey more times.
If you want to get some randomness into the order, just mix the order of MOD numbers, e.g. start with 7, continue with 23 etc.
I hope I got the question right, I am not sure in some parts.

question regarding randbetween in excel and revenue

The Doobie Brothers garage band is planning a concert. Tickets are set at $20. Based on what other bands have done, they figure they should sell 350 tickets, but that could fluctuate. They figure the standard deviation of sales at 50 tickets. No shows are uniformly distributed between 1 and 10. Fixed costs are 5000.
How profitable is the concert likely to be?
So I am able to enter the excel formula for revenue 50*20 and subtract 5000 for FC, but I am having trouble deciphering how to account for the no show costs. I know that I have to use RANDBETWEEN(1,10) formula, but I am not sure if it gets multiplied or divided by something. Again, I am looking for what to do with the formula in the context of a profit equation.
If it helps, the mean for the number of tickets sold is 350 and stdev is 50, so I used that to get the number of attendees in a simulated sense...That is, NORM.INV(RAND(),350,50)
Of course, this problem may not be realistic in real life because promoters keep the money, but for the purposes of the problem...just assume that no promoters exist here.

Predicting Monthly Brand Sales (Excel 2016)

I'm currently looking at daily sales data of a specific brand over the course of the past year. My objective is to create a formula to roughly estimate the sales growth for future months.
My project isn't going very well, as the brand is very volatile in monthly sales, making it impossible to predict with a basic linear formula. I'm arriving at the conclusion that a single year's worth of sales isn't enough data, and I may have to result to provide a specific formula depending on the month. Is there anything I haven't thought of?
Note: Recording of sales start on the 15th of every month
Your sales are showing seasonality. Consider using sasonal ARIMA models.

Excel: Computing Regular Deposits for a Specified Future Amount

I had tried to run some example from my calculator on excel. I cannot get the correct answer of 203.13. Can someone try to pinpoint the error in my formula?
You plan to open a savings account and deposit the same amount of money at the beginning of each month. In 10 years, you want to have $25,000 in the account.
How much should you deposit if the annual interest rate is 0.5% with quarterly compounding?
FV 25000
NPER 10
RATE 0.50%
PMT ($193.23)
=PMT(RATE/4, NPER*12,,FV)
You must observe consistency in the periodicity. If you use monthly payments, you must have an NPER in months as well, and a monthly RATE. THe difficulty here is that the quarterly compound with a monthly deposit.
If you calculate everything on a quarterly basis, you will also have dfferences, but I think they will be minor.
To calculate a precise answer you would need to know when you made the first payment relative to the bank's quarterly interest cycle. If your first deposit was immediately before the interest compound date, interest would start accruing immediately. If your first deposit was immediately after the interest compound date, interest would not accrue immediately.
Also the bank may calculate interest based on the ending balance or on the average balance for that quarter.
After a long time, I found the answer. However, I cannot understand the formula. isnt RATE/4 as it is quarterly compounded?
=PMT(RATE/12, NPER*12,,FV,1)

Monte Carlo Simulation using Excel Solver

I am trying to figure out what the optimal number of products I should make per day are, displaying the values in a chart and then using the chart to find the optimal number of products to make per day.
Cost of production: $4
Sold for: $12
Leftovers sold for $1
So the ideal profit for a product is $8, but it could be -$3 if it's left over at the end of the day.
The daily demand of sales has a mean of 150 and a standard deviation of 30.
I have been able to generate a list of random numbers using to generate a list of how many products: NORMINV(RAND(),mean,std_dev)
but I don't know where to go from here to figure out the amount sold from the amount of products made that day.
The number sold on a given day is min(# produced, daily demand).
ADDENDUM
The decision variable is a choice you make: "I will produce 150 each day", or "I will produce 145 each day". You told us in the problem statement that daily demand is a random outcome with a mean of 150 and a SD of 30. Let's say you go with producing 150, the mean of demand. Since it's the mean of a symmetric distribution, half the time you will sell everything you made and have no losses, but in most of those cases you actually could have sold more and made more money. You can't sell products you didn't make, so your profit is capped at selling 150 on those days. The other half of the time, you won't sell all 150 and will take a loss on the unsold items, reducing your profit a bit. The actual profit on any given day is a random variable, because it is determined by random demand.
Since profit is random, you can calculate your average earnings across many days based on the assumption that you produce 150. You can also average earnings based on the assumption that you produce 140 per day, or 160 per day, or any other number. It sounds like you've been asked to plot those average earnings versus how many you decided to produce, and choose a production level that results in the highest long-term average earnings.

Resources